src/platform/qt/Display.h (view raw)
1#ifndef QGBA_DISPLAY
2#define QGBA_DISPLAY
3
4#include <QGLWidget>
5
6namespace QGBA {
7
8class Display : public QGLWidget {
9Q_OBJECT
10
11public:
12 Display(QWidget* parent = 0);
13
14protected:
15 virtual void initializeGL();
16
17public slots:
18 void draw(const QImage& image);
19 void paintGL();
20
21private:
22 GLuint m_tex;
23};
24
25}
26
27#endif