MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / TerrainDrawCurrentVert

Function TerrainDrawCurrentVert

Descent3/terrainrender.cpp:2217–2230  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2215#define CROSS_WIDTH 8.0
2216#define CROSS_HEIGHT 8.0
2217void TerrainDrawCurrentVert(int tcell) {
2218 if (TerrainSelected[tcell]) {
2219 g3Point pnt;
2220 pnt.p3_flags = 0;
2221 pnt.p3_vec = World_point_buffer[tcell].p3_vec;
2222 g3_ProjectPoint(&pnt); // make sure projected
2223
2224 rend_SetFlatColor(GR_RGB(0, 250, 0));
2225 rend_DrawLine(pnt.p3_sx - CROSS_WIDTH, pnt.p3_sy, pnt.p3_sx, pnt.p3_sy - CROSS_HEIGHT);
2226 rend_DrawLine(pnt.p3_sx, pnt.p3_sy - CROSS_HEIGHT, pnt.p3_sx + CROSS_WIDTH, pnt.p3_sy);
2227 rend_DrawLine(pnt.p3_sx + CROSS_WIDTH, pnt.p3_sy, pnt.p3_sx, pnt.p3_sy + CROSS_HEIGHT);
2228 rend_DrawLine(pnt.p3_sx, pnt.p3_sy + CROSS_HEIGHT, pnt.p3_sx - CROSS_WIDTH, pnt.p3_sy);
2229 }
2230}
2231#endif
2232#if (!defined(RELEASE) || defined(NEWEDITOR))
2233__inline void DrawTerrainOutline(int tcell, int nverts, g3Point **pointlist)

Callers 1

DisplayTerrainListFunction · 0.85

Calls 4

g3_ProjectPointFunction · 0.85
rend_SetFlatColorFunction · 0.50
GR_RGBFunction · 0.50
rend_DrawLineFunction · 0.50

Tested by

no test coverage detected