blob: aec0a1339b017da92d352f754ef5a798939e3961 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
};
|