28 |
28 |
29 public: |
29 public: |
30 renderer (QWidget* parent = nullptr); |
30 renderer (QWidget* parent = nullptr); |
31 void hardRefresh (); |
31 void hardRefresh (); |
32 void compileObjects (); |
32 void compileObjects (); |
33 void setColor (str zColor, void (*func) (float, float, float, float)); |
33 void setBackground (); |
34 |
34 |
35 double fRotX, fRotY, fRotZ; |
35 double fRotX, fRotY, fRotZ; |
36 QPoint lastPos; |
36 QPoint lastPos; |
37 double fZoom; |
37 double fZoom; |
38 |
38 |
49 template<class T> void compileSubObject (LDObject* obj, const bool bBackSide, |
49 template<class T> void compileSubObject (LDObject* obj, const bool bBackSide, |
50 const GLenum eGLType, const short dVerts); |
50 const GLenum eGLType, const short dVerts); |
51 void compileVertex (vertex& vrt); |
51 void compileVertex (vertex& vrt); |
52 void clampAngle (double& fAngle); |
52 void clampAngle (double& fAngle); |
53 void setObjectColor (LDObject* obj, bool bBackSide); |
53 void setObjectColor (LDObject* obj, bool bBackSide); |
|
54 void setMainColor (); |
54 }; |
55 }; |
55 |
56 |
56 #endif // __GLDRAW_H__ |
57 #endif // __GLDRAW_H__ |