mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
start work on multiple window support
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
#include <atomic>
|
||||
#include <variant>
|
||||
#include <optional>
|
||||
#include <list>
|
||||
|
||||
#include "NDSCart.h"
|
||||
#include "GBACart.h"
|
||||
@ -37,6 +38,7 @@ namespace melonDS
|
||||
class NDS;
|
||||
}
|
||||
|
||||
class MainWindow;
|
||||
class ScreenPanelGL;
|
||||
|
||||
class EmuThread : public QThread
|
||||
@ -47,6 +49,9 @@ class EmuThread : public QThread
|
||||
public:
|
||||
explicit EmuThread(QObject* parent = nullptr);
|
||||
|
||||
void attachWindow(MainWindow* window);
|
||||
void detachWindow(MainWindow* window);
|
||||
|
||||
void changeWindowTitle(char* title);
|
||||
|
||||
// to be called from the UI thread
|
||||
@ -123,10 +128,13 @@ private:
|
||||
};
|
||||
std::atomic<ContextRequestKind> ContextRequest = contextRequest_None;
|
||||
|
||||
ScreenPanelGL* screenGL;
|
||||
//ScreenPanelGL* screenGL;
|
||||
MainWindow* mainWindow;
|
||||
std::list<MainWindow*> windowList;
|
||||
|
||||
int autoScreenSizing;
|
||||
|
||||
bool useOpenGL;
|
||||
int videoRenderer;
|
||||
bool videoSettingsDirty;
|
||||
};
|
||||
|
Reference in New Issue
Block a user