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

Function PreUpdateAllLightGlows

Descent3/render.cpp:2600–2608  ·  view source on GitHub ↗

Called before a frame starts to render - sets all of our light glows to decreasing

Source from the content-addressed store, hash-verified

2598}
2599// Called before a frame starts to render - sets all of our light glows to decreasing
2600void PreUpdateAllLightGlows() {
2601 int i, count;
2602 for (i = 0, count = 0; i < MAX_LIGHT_GLOWS && count < Num_glows; i++) {
2603 if (LightGlows[i].flags & LGF_USED) {
2604 count++;
2605 LightGlows[i].flags &= ~LGF_INCREASING;
2606 }
2607 }
2608}
2609// Called after a frame has been rendered - slowly morphs our light glows into nothing
2610void PostUpdateAllLightGlows() {
2611 int i, count;

Callers 1

GameRenderFrameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected