Mon, 18 Mar 2013 04:03:05 +0200
added dummy action for future inlining command. Also GCC says that deleting instances of classes with virtual members but no virtual destructors is bad.
0 | 1 | #ifndef __REND_H__ |
2 | #define __REND_H__ | |
3 | ||
4 | #include <QGLWidget> | |
5 | #include "common.h" | |
6 | #include "ldtypes.h" | |
7 | ||
8 | class renderer : public QGLWidget { | |
9 | Q_OBJECT | |
10 | ||
11 | public: | |
12 | renderer(QWidget* parent = NULL); | |
13 | void hardRefresh (); | |
14 | void CompileObjects (); | |
15 | double fRotX, fRotY, fRotZ; | |
16 | QPoint lastPos; | |
17 | double fZoom; | |
18 | ||
19 | protected: | |
20 | void initializeGL (); | |
21 | void resizeGL (int w, int h); | |
22 | void paintGL (); | |
23 | ||
24 | void mouseMoveEvent (QMouseEvent *event); | |
25 | ||
26 | private: | |
27 | GLuint objlist; | |
28 | void CompileOneObject (LDObject* obj); | |
29 | void ClampAngle (double& fAngle); | |
30 | }; | |
31 | ||
32 | #endif |