コード例 #1
0
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();
}
コード例 #2
0
	~ParticleSystem(){
		//do nothing
		ClearAllEmitters();
		
		ClearAllParticles();
	}