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

Function CountElements

editor/rad_init.cpp:192–204  ·  view source on GitHub ↗

Counts the total number of elements we have to work with

Source from the content-addressed store, hash-verified

190
191// Counts the total number of elements we have to work with
192void CountElements() {
193 rad_surface *surf;
194 int i;
195
196 rad_NumElements = 0;
197
198 for (i = 0; i < rad_NumSurfaces; i++) {
199 surf = &rad_Surfaces[i];
200
201 rad_NumElements += (surf->xresolution * surf->yresolution);
202 }
203 mprintf(0, "Number of elements=%d\n", rad_NumElements);
204}
205
206// Initializes the exitances for all surfaces
207void InitExitance() {

Callers 1

InitRadiosityRunFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected