mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-01-05 00:00:42 +01:00
24 lines
421 B
C++
24 lines
421 B
C++
#pragma once
|
|
|
|
#include <QQuickItem>
|
|
#include <QOpenGLFramebufferObject>
|
|
|
|
class GLViewer : public QQuickItem
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
GLViewer(QQuickItem* parent = 0);
|
|
virtual ~GLViewer();
|
|
|
|
protected:
|
|
QSGNode* updatePaintNode(QSGNode* old, UpdatePaintNodeData* data);
|
|
void timerEvent(QTimerEvent* evt);
|
|
|
|
private slots:
|
|
void cleanup();
|
|
|
|
private:
|
|
int m_timerID;
|
|
QOpenGLFramebufferObject* m_fbo;
|
|
};
|