Facebook Twitter YouTube

class ParticleSystemReg

Defined in:  TSParticles.h
The ParticleSystemReg class represents a custom particle system type.
Definition

template <class classType> class ParticleSystemReg : public ParticleSystemRegistration

Template Parameters
classType The custom particle system class.
Constructor

ParticleSystemReg(ParticleSystemType type, const char *name);

Parameters
type The particle system type.
name The particle system name.
Description
The ParticleSystemReg template class is used to advertise the existence of a custom particle system type. The World Manager uses a particle system registration to construct a custom particle system. The act of instantiating a ParticleSystemReg object automatically registers the corresponding particle system type. The particle system type is unregistered when the ParticleSystemReg object is destroyed.

No more than one particle system registration should be created for each distinct particle system type.
Base Classes
ParticleSystemRegistration All specific particle system registration classes share the common base class ParticleSystemRegistration.
See Also

ParticleSystem