A draw policy for drawing particles of type AnimatedParticle. More...
#include <Graphics/ParticleSystem.h>
Public Member Functions | |
| AnimatedParticleDrawPolicy () | |
| Default constructor. | |
| void | Init (uint maxParticles) |
| Called one at initialization. | |
| void | Draw (const std::vector< size_t > &active, const std::vector< AnimatedParticle > &particleStore) |
| Draws the active set of particles. | |
A draw policy for drawing particles of type AnimatedParticle.
| void AnimatedParticleDrawPolicy::Draw | ( | const std::vector< size_t > & | active, | |
| const std::vector< AnimatedParticle > & | particleStore | |||
| ) |
Draws the active set of particles.
| [in] | active | a vector of indices into the particleStore of the particles to draw. |
| [in] | particleStore | a vector holding all of the particles (active and dead). |
| void AnimatedParticleDrawPolicy::Init | ( | uint | maxParticles | ) |
Called one at initialization.
| [in] | maxParticles | the maximum number of particles that will ever be drawn at a time. |
1.6.3