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

Function g3_CheckAndDrawPoly

renderer/HardwareDraw.cpp:133–136  ·  view source on GitHub ↗

like g3_DrawPoly(), but checks to see if facing. If surface normal is NULL, this routine must compute it, which will be slow. It is better to pre-compute the normal, and pass it to this function. When the normal is passed, this function works like g3_CheckNormalFacing() plus g3_DrawPoly().

Source from the content-addressed store, hash-verified

131// is passed, this function works like g3_CheckNormalFacing() plus
132// g3_DrawPoly().
133void g3_CheckAndDrawPoly(int nv, g3Point **pointlist, int bm, vector *norm, vector *pnt) {
134 if (DoFacingCheck(norm, pointlist, pnt))
135 g3_DrawPoly(nv, pointlist, bm);
136}
137
138int Triangulate_test = 0;
139

Callers 2

CheckRoomFunction · 0.85
DrawSphereFunction · 0.85

Calls 2

DoFacingCheckFunction · 0.85
g3_DrawPolyFunction · 0.85

Tested by

no test coverage detected