Effect Manager
C4Particles.h

class ParticlePool

The ParticlePool class handles storage for particles in a particle system.
Definition

template <class type = Particle> class ParticlePool : public ParticlePoolBase

Member Functions
ParticlePool::NewParticle Returns an unused particle from a particle pool.
Template Parameters
type The structure containing the state data for each particle.
Constructor

ParticlePool(long count, type *pool = nullptr);

Parameters
count The total number of particles in the pool.
pool A pointer to an array of structures that hold the particle state data. This may be nullptr, in which case the storage will be allocated by the ParticlePool class.
Description


Base Classes
ParticlePoolBase Used internally to encapsulate common functionality that is independent of the template parameter.
See Also
ParticleSystem

Particle