diff options
author | ExMix <rahuba.youri@mapswithme.com> | 2014-11-18 10:59:23 +0300 |
---|---|---|
committer | Alex Zolotarev <alex@maps.me> | 2015-09-23 02:32:49 +0300 |
commit | 9e3bab30ae6a1f87af82a2fdc9502fbaa98a3351 (patch) | |
tree | 4848e79331a768c1066fd71c5527ef17f55e28bc /qt/qtoglcontext.hpp | |
parent | c7e4429a42b5592603b4ea6c03f7373e23ad5fdf (diff) |
[desktop] surface and OGL for desktop build with drape renderer
Diffstat (limited to 'qt/qtoglcontext.hpp')
-rw-r--r-- | qt/qtoglcontext.hpp | 22 |
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; +}; |