10 #ifndef hifi_GLWindow_h
11 #define hifi_GLWindow_h
14 #include <QtGui/QWindow>
19 class GLWindow :
public QWindow {
22 void createContext(QOpenGLContext* shareContext =
nullptr);
23 void createContext(
const QSurfaceFormat& format, QOpenGLContext* shareContext =
nullptr);
27 QOpenGLContext* context()
const;
29 gl::Context* _context{
nullptr };
30 std::once_flag _reportOnce;