Graphics class that represents an emitter of particles.
More...
Graphics class that represents an emitter of particles.
◆ Emit()
void Nz::ParticleEmitter::Emit |
( |
ParticleGroup & |
system, |
|
|
float |
elapsedTime |
|
) |
| const |
|
virtual |
Emits particles according to the delta time between the previous frame.
- Parameters
-
system | Particle system to work on |
elapsedTime | Delta time between the previous frame |
◆ EnableLagCompensation()
void Nz::ParticleEmitter::EnableLagCompensation |
( |
bool |
enable | ) |
|
Enables the lag compensation.
- Parameters
-
enable | Should lag compensation be enabled |
◆ GetEmissionCount()
std::size_t Nz::ParticleEmitter::GetEmissionCount |
( |
| ) |
const |
Gets the emission count.
- Returns
- Current emission count
◆ GetEmissionRate()
float Nz::ParticleEmitter::GetEmissionRate |
( |
| ) |
const |
Gets the emission rate.
- Returns
- Current emission rate
◆ IsLagCompensationEnabled()
bool Nz::ParticleEmitter::IsLagCompensationEnabled |
( |
| ) |
const |
Checks whether the lag compensation is enabled.
- Returns
- true If it is the case
◆ SetEmissionCount()
void Nz::ParticleEmitter::SetEmissionCount |
( |
std::size_t |
count | ) |
|
Sets the emission count.
- Parameters
-
◆ SetEmissionRate()
void Nz::ParticleEmitter::SetEmissionRate |
( |
float |
rate | ) |
|
Sets the emission rate.
- Parameters
-
The documentation for this class was generated from the following files: