]> git.sesse.net Git - nageru/blobdiff - context.h
Use the shared resource pool everywhere.
[nageru] / context.h
index 5a7576665c6dda60c0781f15c92c70ab5bce7d9b..0c92a602716f263f4ad6237da871a84bb767f976 100644 (file)
--- a/context.h
+++ b/context.h
@@ -5,7 +5,9 @@
 class QSurface;
 class QOpenGLContext;
 class QSurfaceFormat;
+class QGLWidget;
 
+extern QGLWidget *global_share_widget;
 QSurface *create_surface(const QSurfaceFormat &format);
-QOpenGLContext *create_context();
+QOpenGLContext *create_context(const QSurface *surface);
 bool make_current(QOpenGLContext *context, QSurface *surface);