X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=context.h;h=13dbf248f8cd4289b781de3b2e0d000803529ba9;hb=e284d1c7a2e18ee7e4aea082c4a57a3504a0f5e8;hp=0c92a602716f263f4ad6237da871a84bb767f976;hpb=ce8077a29627c7a55c5afdfdf5b56a4b179c7d62;p=nageru diff --git a/context.h b/context.h index 0c92a60..13dbf24 100644 --- a/context.h +++ b/context.h @@ -7,7 +7,10 @@ class QOpenGLContext; class QSurfaceFormat; class QGLWidget; +extern bool using_egl; extern QGLWidget *global_share_widget; QSurface *create_surface(const QSurfaceFormat &format); +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);