void C4ParticleSystem::Clear() { #ifndef USE_CONSOLE if (ibo != 0) glDeleteBuffers(1, &ibo); ibo = 0; ibo_size = 0; currentSimulationTime = 0; ClearAllParticles(); #endif // clear definitions even in console mode definitions.Clear(); }
~ParticleSystem(){ //do nothing ClearAllEmitters(); ClearAllParticles(); }