| 762 | #define CROSS_HEIGHT 8.0 |
| 763 | |
| 764 | void DrawVertBox(vector *v, ddgr_color color) { |
| 765 | // Draw a box at the marked vert |
| 766 | g3Point p0; |
| 767 | uint8_t c0 = g3_RotatePoint(&p0, v); |
| 768 | if (!c0) { // on screen? |
| 769 | g3_ProjectPoint(&p0); |
| 770 | rend_SetFlatColor(color); |
| 771 | rend_DrawLine(p0.p3_sx - CROSS_WIDTH, p0.p3_sy, p0.p3_sx, p0.p3_sy - CROSS_HEIGHT); |
| 772 | rend_DrawLine(p0.p3_sx, p0.p3_sy - CROSS_HEIGHT, p0.p3_sx + CROSS_WIDTH, p0.p3_sy); |
| 773 | rend_DrawLine(p0.p3_sx + CROSS_WIDTH, p0.p3_sy, p0.p3_sx, p0.p3_sy + CROSS_HEIGHT); |
| 774 | rend_DrawLine(p0.p3_sx, p0.p3_sy + CROSS_HEIGHT, p0.p3_sx - CROSS_WIDTH, p0.p3_sy); |
| 775 | } |
| 776 | } |
| 777 | |
| 778 | void DrawWorld(grViewport *vp, vector *view_target, matrix *view_orient, float view_dist, int start_room, float rad) { |
| 779 | vector viewer_position; |
no test coverage detected