mirror of
https://github.com/decaf-emu/decaf-emu.git
synced 2025-04-02 10:42:13 -04:00
Basic skeleton app now, let's see if we can iterate on this until we have something useful?
28 lines
548 B
C++
28 lines
548 B
C++
#pragma once
|
|
#include <QOpenGLWidget>
|
|
#include <QOpenGLFunctions_4_5_Core>
|
|
|
|
class ReplayRenderWidget : public QOpenGLWidget, QOpenGLFunctions_4_5_Core
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
ReplayRenderWidget(QWidget *parent = 0);
|
|
|
|
void initializeGL() override;
|
|
void paintGL() override;
|
|
|
|
public Q_SLOTS:
|
|
void displayFrame(unsigned int tv, unsigned int drc);
|
|
|
|
private:
|
|
GLuint mTvBuffer;
|
|
GLuint mDrcBuffer;
|
|
|
|
GLuint mVertexProgram;
|
|
GLuint mPixelProgram;
|
|
GLuint mPipeline;
|
|
GLuint mVertArray;
|
|
GLuint mVertBuffer;
|
|
GLuint mSampler;
|
|
};
|