class ParticleSystem
Defined in: C4Particles.h
The ParticleSystem class represents a particle system node in a scene graph.
Definition
class ParticleSystem : public Effect, public Registrable<ParticleSystem, ParticleSystemRegistration>
Member Functions
Constructor
ParticleSystem(ParticleSystemType type, ParticlePoolBase *pool, ParticleStyle style = kParticlePoint,
const char *textureName = nullptr);
The constructor has protected access. The ParticleSystem class can only exist as the base class for a more specific type of particle effect.
Parameters
type |
The type of particle system.
|
pool |
The particle pool from which this effect creates particles.
|
style |
The particle style. The available styles are listed below.
|
textureName |
The name of the texture map to use. If this is nullptr, then the default particle texture is used.
|
Description
kParticlePoint |
Render particles as points.
|
kParticleLine |
Render particles as lines along their current velocity vectors.
|
kParticleQuad |
Render particles as oriented quads. (The particle type must be derived from QuadParticle.)
|
kParticlePolyboard |
Render particles as polyboards connecting to other particles. (The particle type must be derived from PolyParticle.)
|
Base Classes
See Also
ParticlePool
Particle
|