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

Function EfxInit

Descent3/TelComEffects.cpp:152–174  ·  view source on GitHub ↗

Initializes the effects

Source from the content-addressed store, hash-verified

150
151// Initializes the effects
152void EfxInit(void) {
153 int i;
154
155 for (i = 0; i < MAX_TCEFFECTS; i++) {
156 tceffect *tce = &TCEffects[i];
157 tce->type = EFX_NONE;
158 tce->monitor = -1;
159 tce->screen = -1;
160 tce->id = INVALID_EFFECT_ID;
161 tce->prev = -1;
162 tce->next = -1;
163 tce->text_buffer = NULL;
164 tce->tab_stop = false;
165 tce->has_focus = false;
166 for (int j = 0; j < MAX_EFFECT_EVENTS; j++)
167 tce->event_queue[j].id = -1;
168 }
169
170 for (i = 0; i < MAX_TELCOM_SCREENS; i++) {
171 Screen_has_effect_with_focus[i] = false;
172 Screen_roots[i] = -1;
173 }
174}
175
176// Shutdown of effects
177void EfxClose(void) {

Callers 3

TelComMainFunction · 0.85
EfxDestroyAllScreensFunction · 0.85
EfxCreateFunction · 0.85

Calls 2

vm_MakeZeroFunction · 0.85
vm_MakeIdentityFunction · 0.50

Tested by

no test coverage detected