blob: 1030f9940ce6e617e3b972ab31d4c73d408a1d78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#pragma once
#include <QtGlobal>
QT_FORWARD_DECLARE_CLASS(QGLWidget);
// Creating a QGLContext on its own doesn't work. We've tried that. You can't
// create a context on your own. It has to be associated with a real paint
// device. Source:
// http://lists.trolltech.com/qt-interest/2008-08/thread00046-0.html
class SharedGLContext {
public:
static QGLWidget* getWidget();
static void setWidget(QGLWidget* pWidget);
private:
SharedGLContext() { }
static QGLWidget* s_pSharedGLWidget;
};
|