X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=context.h;h=13dbf248f8cd4289b781de3b2e0d000803529ba9;hb=9e47a2f661b9d292598ef0277e507458e3dad62f;hp=5a7576665c6dda60c0781f15c92c70ab5bce7d9b;hpb=e18d9bad93d5bf766d52d0cb66db4c3d3f8a711b;p=nageru diff --git a/context.h b/context.h index 5a75766..13dbf24 100644 --- a/context.h +++ b/context.h @@ -5,7 +5,12 @@ class QSurface; class QOpenGLContext; class QSurfaceFormat; +class QGLWidget; +extern bool using_egl; +extern QGLWidget *global_share_widget; QSurface *create_surface(const QSurfaceFormat &format); -QOpenGLContext *create_context(); +QSurface *create_surface_with_same_format(const QSurface *surface); +QOpenGLContext *create_context(const QSurface *surface); bool make_current(QOpenGLContext *context, QSurface *surface); +void delete_context(QOpenGLContext *context);