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

Function g3_FreeTempPoints

renderer/HardwareClipper.cpp:71–82  ·  view source on GitHub ↗

Free up any temp points (created by the clipper) in the given pointlist Parameters: pointlist - pointer to list of pointers to points, returned by g3_ClipPolygon() nv - the number of points in pointlist

Source from the content-addressed store, hash-verified

69// Parameters: pointlist - pointer to list of pointers to points, returned by g3_ClipPolygon()
70// nv - the number of points in pointlist
71void g3_FreeTempPoints(g3Point **pointlist, int nv) {
72 // Go through list
73 int i;
74 for (i = 0; i < nv; i++) {
75 if (pointlist[i]->p3_flags & PF_TEMP_POINT) {
76 FreeTempPoint(pointlist[i]);
77 }
78 }
79
80 // Make sure all temp points are freed
81 CheckTempPoints();
82}
83
84// Clips an edge against the far plane
85g3Point *ClipFarEdge(g3Point *on_pnt, g3Point *off_pnt) {

Callers 4

DrawRadiosityPolyFunction · 0.85
BuildRoomListSubFunction · 0.85
BuildMirroredRoomListSubFunction · 0.85
BuildMirroredRoomListFunction · 0.85

Calls 2

FreeTempPointFunction · 0.85
CheckTempPointsFunction · 0.85

Tested by

no test coverage detected