mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 04:49:14 +12:00
Get emulator rendering working with Qt
This commit is contained in:
parent
4329976dbc
commit
5155682e0f
12 changed files with 98 additions and 22 deletions
|
@ -5,7 +5,9 @@
|
|||
#include <QMenuBar>
|
||||
#include <QPalette>
|
||||
#include <QtWidgets>
|
||||
#include <thread>
|
||||
|
||||
#include "emulator.hpp"
|
||||
#include "panda_qt/screen.hpp"
|
||||
|
||||
class MainWindow : public QMainWindow {
|
||||
|
@ -18,6 +20,10 @@ class MainWindow : public QMainWindow {
|
|||
Dark = 2,
|
||||
};
|
||||
|
||||
// This would normally be an std::unique_ptr but it's shared between threads so definitely not
|
||||
Emulator* emu = nullptr;
|
||||
std::thread emuThread;
|
||||
|
||||
QComboBox* themeSelect = nullptr;
|
||||
QMenuBar* menuBar = nullptr;
|
||||
ScreenWidget screen;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue