94 void hardRefresh(); |
94 void hardRefresh(); |
95 void initGLData(); |
95 void initGLData(); |
96 void overlaysFromObjects(); |
96 void overlaysFromObjects(); |
97 void refresh(); |
97 void refresh(); |
98 void resetAngles(); |
98 void resetAngles(); |
99 uchar* screencap (ushort& w, ushort& h); |
99 uchar* screencap (int& w, int& h); |
100 void setBackground(); |
100 void setBackground(); |
101 void setCamera (const Camera cam); |
101 void setCamera (const Camera cam); |
102 void setDepthValue (double depth); |
102 void setDepthValue (double depth); |
103 bool setupOverlay (GLRenderer::Camera cam, str file, int x, int y, int w, int h); |
103 bool setupOverlay (GLRenderer::Camera cam, str file, int x, int y, int w, int h); |
104 void updateOverlayObjects(); |
104 void updateOverlayObjects(); |
176 void compileVertex (const vertex& vrt); // Compile a single vertex to a list |
176 void compileVertex (const vertex& vrt); // Compile a single vertex to a list |
177 vertex coordconv2_3 (const QPoint& pos2d, bool snap) const; // Convert a 2D point to a 3D point |
177 vertex coordconv2_3 (const QPoint& pos2d, bool snap) const; // Convert a 2D point to a 3D point |
178 QPoint coordconv3_2 (const vertex& pos3d) const; // Convert a 3D point to a 2D point |
178 QPoint coordconv3_2 (const vertex& pos3d) const; // Convert a 3D point to a 2D point |
179 LDOverlay* findOverlayObject (Camera cam); |
179 LDOverlay* findOverlayObject (Camera cam); |
180 void updateRectVerts(); |
180 void updateRectVerts(); |
181 void pick (uint mouseX, uint mouseY); // Perform object selection |
181 void pick (int mouseX, int mouseY); // Perform object selection |
182 void setObjectColor (LDObject* obj, const ListType list); // Set the color to an object list |
182 void setObjectColor (LDObject* obj, const ListType list); // Set the color to an object list |
183 QColor getTextPen() const; // Determine which color to draw text with |
183 QColor getTextPen() const; // Determine which color to draw text with |
184 void getRelativeAxes (Axis& relX, Axis& relY) const; |
184 void getRelativeAxes (Axis& relX, Axis& relY) const; |
185 |
185 |
186 void drawBlip (QPainter& paint, QPoint pos) const; |
186 void drawBlip (QPainter& paint, QPoint pos) const; |