get the OpenGL renderer going.

sorta.

(also make the blackmagic_II branch obsolete in the process)
This commit is contained in:
Arisotura
2020-05-25 18:25:50 +02:00
parent 10f9eda58a
commit 36f4cdbbbf
13 changed files with 1241 additions and 42 deletions

View File

@ -25,6 +25,7 @@
#include <QImage>
#include <QActionGroup>
#include <QOffscreenSurface>
#include <QOpenGLWidget>
#include <QOpenGLContext>
#include <QOpenGLFunctions>
@ -40,6 +41,11 @@ class EmuThread : public QThread
public:
explicit EmuThread(QObject* parent = nullptr);
void initOpenGL();
void deinitOpenGL();
void* oglGetProcAddress(const char* proc);
void changeWindowTitle(char* title);
// to be called from the UI thread
@ -67,6 +73,9 @@ private:
volatile int EmuStatus;
int PrevEmuStatus;
int EmuRunning;
QOffscreenSurface* oglSurface;
QOpenGLContext* oglContext;
};
@ -161,6 +170,8 @@ public:
explicit MainWindow(QWidget* parent = nullptr);
~MainWindow();
QOpenGLContext* getOGLContext();
protected:
void resizeEvent(QResizeEvent* event) override;