]> git.sesse.net Git - nageru/blob - context.h
Fix an issue where the mixer lagging too much behind CEF would cause us to display...
[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 bool using_egl;
11 extern QGLWidget *global_share_widget;
12 QSurface *create_surface(const QSurfaceFormat &format);
13 QSurface *create_surface_with_same_format(const QSurface *surface);
14 QOpenGLContext *create_context(const QSurface *surface);
15 bool make_current(QOpenGLContext *context, QSurface *surface);
16 void delete_context(QOpenGLContext *context);