aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/Screen.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl/Screen.h')
-rw-r--r--src/frontend/qt_sdl/Screen.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/src/frontend/qt_sdl/Screen.h b/src/frontend/qt_sdl/Screen.h
index 955eb2e..b11df29 100644
--- a/src/frontend/qt_sdl/Screen.h
+++ b/src/frontend/qt_sdl/Screen.h
@@ -122,9 +122,15 @@ public:
bool createContext();
+ void setSwapInterval(int intv);
+
+ void initOpenGL();
+ void deinitOpenGL();
+ void drawScreenGL();
+
GL::Context* getContext() { return glContext.get(); }
- void transferLayout(EmuThread* thread);
+ void transferLayout();
protected:
qreal devicePixelRatioFromScreen() const;
@@ -149,6 +155,17 @@ private:
void setupScreenLayout();
std::unique_ptr<GL::Context> glContext;
+
+ GLuint screenVertexBuffer, screenVertexArray;
+ GLuint screenTexture;
+ GLuint screenShaderProgram[3];
+ GLuint screenShaderTransformULoc, screenShaderScreenSizeULoc;
+
+ QMutex screenSettingsLock;
+ WindowInfo windowInfo;
+ bool filter;
+
+ int lastScreenWidth = -1, lastScreenHeight = -1;
};
#endif // SCREEN_H