These are the functions of the particle engine. More...
Functions | |
void | RegisterNewParticle (const ParticleMST &Particle) |
Registers a new particle with the particle engine. More... | |
void | MoveParticles (float Time) |
Calls the move function for each particle and then removes dead particles. More... | |
void | DrawParticles () |
Draws all currently known (alive) particles. More... | |
These are the functions of the particle engine.
To make it as fast as possible, dynamic memory allocation only takes place during initialization (when registering the textures). Later, when huge amounts of particles must be handled, everything takes place in "static" memory.
void ParticleEngineMS::DrawParticles | ( | ) |
Draws all currently known (alive) particles.
void ParticleEngineMS::MoveParticles | ( | float | Time | ) |
Calls the move function for each particle and then removes dead particles.
void ParticleEngineMS::RegisterNewParticle | ( | const ParticleMST & | Particle | ) |
Registers a new particle with the particle engine.