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

Function DrawSubmodelFaceOutline

model/newstyle.cpp:150–165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

148}
149
150static void DrawSubmodelFaceOutline(int nv, g3Point **pointlist) {
151 int i;
152 g3Point tpnt[64];
153 g3Point *tpnt_list[64];
154
155 ASSERT(nv < 64);
156
157 for (i = 0; i < nv; i++) {
158 tpnt[i] = *pointlist[i];
159 tpnt_list[i] = &tpnt[i];
160 }
161
162 for (i = 0; i < nv - 1; i++)
163 g3_DrawLine(GR_RGB(255, 255, 0), tpnt_list[i], tpnt_list[i + 1]);
164 g3_DrawLine(GR_RGB(255, 255, 0), tpnt_list[i], tpnt_list[0]);
165}
166#endif
167
168#define CROSS_WIDTH 8.0

Callers 1

RenderSubmodelFaceFunction · 0.85

Calls 2

g3_DrawLineFunction · 0.85
GR_RGBFunction · 0.50

Tested by

no test coverage detected