]> git.sesse.net Git - nageru/blobdiff - context.h
Use QGLWidget instead of QOpenGLWidget, as the latter is too slow.
[nageru] / context.h
index 5a7576665c6dda60c0781f15c92c70ab5bce7d9b..c670473015054c4156fadc39f6337b6318b17012 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();
 bool make_current(QOpenGLContext *context, QSurface *surface);