Sat, 16 Mar 2013 17:50:13 +0200
So much for that pointer class, caused more problems than it solved. For instance splitting a second quad after a first one had been split would trigger a peculiar crash...
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 |