Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorExMix <rahuba.youri@mapswithme.com>2014-11-18 10:59:23 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 02:32:49 +0300
commit9e3bab30ae6a1f87af82a2fdc9502fbaa98a3351 (patch)
tree4848e79331a768c1066fd71c5527ef17f55e28bc /qt/qtoglcontext.hpp
parentc7e4429a42b5592603b4ea6c03f7373e23ad5fdf (diff)
[desktop] surface and OGL for desktop build with drape renderer
Diffstat (limited to 'qt/qtoglcontext.hpp')
-rw-r--r--qt/qtoglcontext.hpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/qt/qtoglcontext.hpp b/qt/qtoglcontext.hpp
new file mode 100644
index 0000000000..aec0a1339b
--- /dev/null
+++ b/qt/qtoglcontext.hpp
@@ -0,0 +1,22 @@
+#pragma once
+
+#include "../drape/oglcontext.hpp"
+
+#include <QtGui/QWindow>
+#include <QtGui/QOpenGLContext>
+
+class QtOGLContext: public dp::OGLContext
+{
+public:
+ QtOGLContext(QWindow * surface, QtOGLContext * contextToShareWith);
+ ~QtOGLContext();
+
+ virtual void present();
+ virtual void makeCurrent();
+ virtual void setDefaultFramebuffer();
+
+private:
+ QOpenGLContext * m_nativeContext;
+ QWindow * m_surface;
+ bool m_isContextCreated;
+};