aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/main.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl/main.h')
-rw-r--r--src/frontend/qt_sdl/main.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/main.h b/src/frontend/qt_sdl/main.h
index 67c93d0..2a24960 100644
--- a/src/frontend/qt_sdl/main.h
+++ b/src/frontend/qt_sdl/main.h
@@ -21,6 +21,7 @@
#include <QThread>
#include <QWidget>
+#include <QWindow>
#include <QMainWindow>
#include <QImage>
#include <QActionGroup>
@@ -74,7 +75,7 @@ private:
int PrevEmuStatus;
int EmuRunning;
- QOffscreenSurface* oglSurface;
+ QSurface* oglSurface;
QOpenGLContext* oglContext;
};
@@ -162,6 +163,16 @@ private:
};
+class GLShim : public QWindow
+{
+ Q_OBJECT
+
+public:
+ explicit GLShim(QSurfaceFormat& format);
+ ~GLShim();
+};
+
+
class MainWindow : public QMainWindow
{
Q_OBJECT