mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-22 05:40:15 -06:00
start cleaning up: move OpenGL stuff out of EmuThread
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user