Get emulator rendering working with Qt

This commit is contained in:
wheremyfoodat 2023-10-01 01:28:08 +03:00
parent 4329976dbc
commit 5155682e0f
12 changed files with 98 additions and 22 deletions

View file

@ -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;