MCPcopy Create free account
hub / github.com/assaultcube/AC / cleanupexplosion

Function cleanupexplosion

source/src/renderparticles.cpp:166–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void cleanupexplosion()
167{
168 glDisableClientState(GL_VERTEX_ARRAY);
169 glDisableClientState(GL_TEXTURE_COORD_ARRAY);
170
171 if(mtexplosion && maxtmus>=2)
172 {
173 resettmu(0);
174
175 glActiveTexture_(GL_TEXTURE1_ARB);
176 glClientActiveTexture_(GL_TEXTURE1_ARB);
177
178 glDisable(GL_TEXTURE_2D);
179 resettmu(1);
180 glDisableClientState(GL_TEXTURE_COORD_ARRAY);
181
182 glActiveTexture_(GL_TEXTURE0_ARB);
183 glClientActiveTexture_(GL_TEXTURE0_ARB);
184 }
185}
186
187struct particle { vec o, d; int fade, type; int millis; particle *next; };
188particle *parlist[MAXPARTYPES], *parempty = NULL;

Callers 1

render_particlesFunction · 0.85

Calls 1

resettmuFunction · 0.85

Tested by

no test coverage detected