blob: 9e1b43638c8c790e9496288ee8109edbe7c4f8e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include <QWindow>
#include <QtGui/qopengl.h>
#include <QtGui/qopenglshaderprogram.h>
#include <QtGui/qopenglframebufferobject.h>
#include <QColor>
#include <QTime>
class QOpenGLContext;
class PaintedWindow : public QWindow
{
Q_OBJECT
public:
PaintedWindow();
private slots:
void paint();
private:
void resizeEvent(QResizeEvent *);
QOpenGLContext *m_context;
QOpenGLFramebufferObject *m_fbo;
QOpenGLShaderProgram *m_program;
GLuint m_vertexAttribute;
GLuint m_texCoordsAttribute;
};
|