start work on multiple window support

This commit is contained in:
Arisotura
2024-02-20 12:30:19 +01:00
parent a8429af131
commit 5c93ab4271
10 changed files with 165 additions and 33 deletions

View File

@ -103,11 +103,13 @@ public:
explicit MainWindow(QWidget* parent = nullptr);
~MainWindow();
bool hasOGL;
bool hasOpenGL() { return hasOGL; }
GL::Context* getOGLContext();
/*void initOpenGL();
void initOpenGL();
void deinitOpenGL();
void drawScreenGL();*/
void setGLSwapInterval(int intv);
void makeCurrentGL();
void drawScreenGL();
bool preloadROMs(QStringList file, QStringList gbafile, bool boot);
QStringList splitArchivePath(const QString& filename, bool useMemberSyntax);
@ -223,11 +225,15 @@ private:
void createScreenPanel();
bool hasOGL;
bool pausedManually = false;
int oldW, oldH;
bool oldMax;
int test_num;
public:
ScreenPanel* panel;