diff options
author | Arisotura <thetotalworm@gmail.com> | 2023-12-26 19:04:01 +0100 |
---|---|---|
committer | Arisotura <thetotalworm@gmail.com> | 2023-12-26 19:04:01 +0100 |
commit | 7f437d48db554a739dd1cab53fb0536783c87432 (patch) | |
tree | 684917ac4e16875ff019243ee6ea61682ddb4b61 /src/frontend/qt_sdl/Window.cpp | |
parent | 5c90cb939d729e524a8eee3ccad705e4cb2bf42e (diff) |
start cleaning up: move OpenGL stuff out of EmuThread
Diffstat (limited to 'src/frontend/qt_sdl/Window.cpp')
-rw-r--r-- | src/frontend/qt_sdl/Window.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/frontend/qt_sdl/Window.cpp b/src/frontend/qt_sdl/Window.cpp index f373450..7e86354 100644 --- a/src/frontend/qt_sdl/Window.cpp +++ b/src/frontend/qt_sdl/Window.cpp @@ -749,6 +749,30 @@ GL::Context* MainWindow::getOGLContext() return glpanel->getContext(); } +/*void MainWindow::initOpenGL() +{ + if (!hasOGL) return; + + ScreenPanelGL* glpanel = static_cast<ScreenPanelGL*>(panel); + return glpanel->initOpenGL(); +} + +void MainWindow::deinitOpenGL() +{ + if (!hasOGL) return; + + ScreenPanelGL* glpanel = static_cast<ScreenPanelGL*>(panel); + return glpanel->deinitOpenGL(); +} + +void MainWindow::drawScreenGL() +{ + if (!hasOGL) return; + + ScreenPanelGL* glpanel = static_cast<ScreenPanelGL*>(panel); + return glpanel->drawScreenGL(); +}*/ + void MainWindow::resizeEvent(QResizeEvent* event) { int w = event->size().width(); |