]> git.sesse.net Git - nageru/blob - context.h
Use QGLWidget instead of QOpenGLWidget, as the latter is too slow.
[nageru] / context.h
1
2 // Needs to be in its own file because Qt and libepoxy seemingly don't coexist well
3 // within the same file.
4
5 class QSurface;
6 class QOpenGLContext;
7 class QSurfaceFormat;
8 class QGLWidget;
9
10 extern QGLWidget *global_share_widget;
11 QSurface *create_surface(const QSurfaceFormat &format);
12 QOpenGLContext *create_context();
13 bool make_current(QOpenGLContext *context, QSurface *surface);