
DustParticle emitter class.
If the used initialization policy incorporates the DustInit policy, the dust particles will receive a random rotation at birth.
Users should consider using the facilities provided by the ParticleSystem template instead of manually managing emitters.
See the ParticleEmitter class documentation for parameter details.
Public Types | |
| typedef ActionPolicy< PartT, Heir > | ActionP |
| typedef EmissionPolicy | EmissionP |
| typedef Heir | Heir |
| typedef InitPolicy< PartT, Heir > | InitP |
| typedef PartT | Particle |
| typedef util::SmartPointer< util::Iterator< PartT >, util::DestructiveCopy > | ParticleIt |
| typedef RenderP::Renderer | Renderer |
| typedef RenderPolicy< PartT, Heir > | RenderP |
Public Member Functions | |
| void | clear () |
sets the number of active particles to 0 | |
| DustEmitter () | |
| void | emit (unsigned int cnt) |
| emits the given number of particles | |
| G3D::Color4 | getBirthColor () const |
| G3D::Vector2 | getBirthSize () const |
| G3D::Color4 | getDeathColor () const |
| G3D::Vector2 | getDeathSize () const |
| unsigned int | getMaxParticles () const |
| unsigned int | getParticleCount () const |
| ParticleIt | getParticles () |
| accesses the active particles | |
| G3D::TextureRef | getTexture () const |
| bool | isParticleSortingEnabled () const |
| void | process (const float &) |
| processes all particles | |
| void | render (Renderer &, bool standAlone=true) |
| renders this emitter's active particles | |
| virtual void | render (G3D::RenderDevice *&, bool)=0 |
| void | render (Renderer &, bool) |
| void | setBirthColor (const G3D::Color4 &) |
| void | setBirthSize (const G3D::Vector2 &) |
| void | setDeathColor (const G3D::Color4 &) |
| void | setDeathSize (const G3D::Vector2 &) |
| void | setParticleSortingEnabled (bool) |
| enables or disables particle sorting | |
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||
|
|
|
|||||||||
|
|
|
|||||||||
|
sets the number of active particles to The particles are not destroyed and remain pooled. |
|
||||||||||
|
emits the given number of particles
The particles are initialized using the initialization policy.
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
|
|
|||||||||
|
accesses the active particles Dead particles will not be traversed by the iterator.
|
|
|
Implements ONE::fx::EmitterInterface. |
|
|||||||||
|
|
|
|
Reimplemented from ONE::fx::ParticleEmitter< Heir, MAX_P, PartT, EmissionPolicy, InitPolicy, ActionPolicy, RenderPolicy, Base >. |
|
||||||||||||||||
|
renders this emitter's active particles
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
|
|
||||||||||
|
enables or disables particle sorting If sorting is enabled, particles are sorted before rendering. This can be quite costly but is necessary for certain drawing techniques. |
1.4.3