![]() |
Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
NDK class that represents the component emitter of particles. More...
Public Types | |
| using | SetupFunc = std::function< void(const EntityHandle &, Nz::ParticleMapper &, unsigned int)> |
Public Member Functions | |
| ParticleEmitterComponent () | |
| Constructs an ParticleEmitterComponent object by default. | |
| ParticleEmitterComponent (const ParticleEmitterComponent &emitter)=default | |
| ParticleEmitterComponent (ParticleEmitterComponent &&emitter)=default | |
| void | Enable (bool active=true) |
| Enables the emission of particles. More... | |
| bool | IsActive () const |
| Checks whether the emission of particles is activated. More... | |
| void | SetSetupFunc (SetupFunc func) |
| Sets the function use for setting up particles. More... | |
Public Member Functions inherited from Nz::ParticleEmitter | |
| ParticleEmitter () | |
| Constructs a ParticleEmitter object by default. | |
| ParticleEmitter (const ParticleEmitter &emitter) | |
| ParticleEmitter (ParticleEmitter &&emitter) | |
| virtual void | Emit (ParticleGroup &system, float elapsedTime) const |
| Emits particles according to the delta time between the previous frame. More... | |
| void | EnableLagCompensation (bool enable) |
| Enables the lag compensation. More... | |
| std::size_t | GetEmissionCount () const |
| Gets the emission count. More... | |
| float | GetEmissionRate () const |
| Gets the emission rate. More... | |
| bool | IsLagCompensationEnabled () const |
| Checks whether the lag compensation is enabled. More... | |
| void | SetEmissionCount (std::size_t count) |
| Sets the emission count. More... | |
| void | SetEmissionRate (float rate) |
| Sets the emission rate. More... | |
| ParticleEmitter & | operator= (const ParticleEmitter &emitter)=default |
| ParticleEmitter & | operator= (ParticleEmitter &&emitter) |
| NazaraSignal (OnParticleEmitterMove, ParticleEmitter *, ParticleEmitter *) | |
| NazaraSignal (OnParticleEmitterRelease, const ParticleEmitter *) | |
Static Public Attributes | |
| static ComponentIndex | componentIndex |
NDK class that represents the component emitter of particles.
|
inline |
Enables the emission of particles.
| active | Should the emitter be active |
|
inline |
Checks whether the emission of particles is activated.
| true | If it is the case |
|
inline |
Sets the function use for setting up particles.
| func | Function to set up particles |