Mon, 18 Mar 2013 12:15:23 +0200
Deleted scanner.cpp (don't need it), merged model.cpp into io.cpp. Renamed LDForgeWindow to just ForgeWindow since I want the LD* prefix only be given to LDObject derivatives.
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 |