summaryrefslogtreecommitdiffstats
path: root/examples/opengl/paintedwindow/paintedwindow.h
blob: 9da9992a3ed2165d1c9f4731990f6ada866590f6 (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
#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 *);
    void exposeEvent(QExposeEvent *);

    QOpenGLContext *m_context;
};