Mercurial > hg > dmlib
comparison editor/edview.h @ 651:e2ac08228a0f
Move files to various subdirectories.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 16 Apr 2013 06:01:42 +0300 |
parents | edview.h@d34922e6a244 |
children |
comparison
equal
deleted
inserted
replaced
650:107468492257 | 651:e2ac08228a0f |
---|---|
1 #ifndef EDVIEW_H | |
2 #define EDVIEW_H | |
3 | |
4 #include <QtOpenGL> | |
5 #include <QImage> | |
6 #include "dmengine.h" | |
7 | |
8 | |
9 class QEDGLDemoView : public QGLWidget | |
10 { | |
11 Q_OBJECT | |
12 | |
13 public: | |
14 QEDGLDemoView(QWidget *parent); | |
15 ~QEDGLDemoView(); | |
16 | |
17 QSize minimumSizeHint() const; | |
18 QSize sizeHint() const; | |
19 | |
20 virtual void setEngineData(DMEngineData *mengine); | |
21 virtual void render(int frameTime); | |
22 void paintEvent(QPaintEvent *); | |
23 | |
24 private: | |
25 void saveGLState(); | |
26 void restoreGLState(); | |
27 | |
28 protected: | |
29 DMEngineData *engine; | |
30 }; | |
31 | |
32 | |
33 class QEDSWDemoView : public QEDGLDemoView | |
34 { | |
35 Q_OBJECT | |
36 | |
37 public: | |
38 QEDSWDemoView(QWidget *parent); | |
39 ~QEDSWDemoView(); | |
40 | |
41 void setEngineData(DMEngineData *mengine); | |
42 void render(int frameTime); | |
43 void paintEvent(QPaintEvent *); | |
44 | |
45 private: | |
46 QImage *img; | |
47 }; | |
48 | |
49 | |
50 #endif |