2 // Needs to be in its own file because Qt and libepoxy seemingly don't coexist well
3 // within the same file.
10 extern bool using_egl;
11 extern QGLWidget *global_share_widget;
12 QSurface *create_surface();
13 QSurface *create_surface(const QSurfaceFormat &format);
14 QSurface *create_surface_with_same_format(const QSurface *surface);
15 QOpenGLContext *create_context(const QSurface *surface);
16 bool make_current(QOpenGLContext *context, QSurface *surface);
17 void delete_context(QOpenGLContext *context);