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

Function SetupFormFactors

editor/rad_init.cpp:124–129  ·  view source on GitHub ↗

Initalizes memory for form factors

Source from the content-addressed store, hash-verified

122
123// Initalizes memory for form factors
124void SetupFormFactors() {
125 ASSERT(rad_NumElements > 0);
126
127 rad_FormFactors = (float *)mem_malloc(rad_NumElements * sizeof(float));
128 ASSERT(rad_FormFactors != NULL);
129}
130
131void CalculateAreaForSurface(rad_surface *sp) {
132 int i;

Callers 2

InitRadiosityRunFunction · 0.85
UpdateUnsentValuesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected