src/gldraw.h

changeset 666
c595cfb4791c
parent 665
4355e72ffd47
child 667
31540c1f22ea
equal deleted inserted replaced
665:4355e72ffd47 666:c595cfb4791c
71 71
72 public: 72 public:
73 enum Camera { Top, Front, Left, Bottom, Back, Right, Free }; 73 enum Camera { Top, Front, Left, Bottom, Back, Right, Free };
74 enum ListType { NormalList, PickList, BFCFrontList, BFCBackList }; 74 enum ListType { NormalList, PickList, BFCFrontList, BFCBackList };
75 75
76 enum VAOType {
77 MainArray,
78 EdgeArray,
79 CondEdgeArray,
80 BFCArray,
81 PickArray,
82 EdgePickArray,
83 NumArrays
84 };
85
76 GLRenderer (QWidget* parent = null); 86 GLRenderer (QWidget* parent = null);
77 ~GLRenderer(); 87 ~GLRenderer();
78 88
79 inline Camera camera() const 89 inline Camera camera() const
80 { return m_camera; 90 { return m_camera;
86 void compileObject (LDObject* obj); 96 void compileObject (LDObject* obj);
87 void compileAllObjects(); 97 void compileAllObjects();
88 double depthValue() const; 98 double depthValue() const;
89 void drawGLScene(); 99 void drawGLScene();
90 void endDraw (bool accept); 100 void endDraw (bool accept);
91 QColor getMainColor(); 101 static QColor getMainColor();
92 LDGLOverlay& getOverlay (int newcam); 102 LDGLOverlay& getOverlay (int newcam);
93 void hardRefresh(); 103 void hardRefresh();
94 void initGLData(); 104 void initGLData();
95 void overlaysFromObjects(); 105 void overlaysFromObjects();
96 void refresh(); 106 void refresh();

mercurial