Particle Emitter Class.
More...
#include <deParticleEmitterController.h>
Particle Emitter Class.
Particle emitter controllers provide the user with control over how the individual particles are cast. Controllers are written in a way that you can use them without having to do scaling or transformation on your own. You can provide a minimum and maximum value matching your setup. The controller takes care of transforming the current value into the proper 0 to 1 range required by the cast curves in parameters. The current value is set by the user and is clamped to the range specified before. The real value is in the range 0 to 1 and is used by the cast curves. The real value can only be read. Furthermore a controller can be frozen. If a controller is frozen the current value can be changed. This is useful to prevent a controller from changing without having to change all code path to account for the frozen state.
◆ deParticleEmitterController()
deParticleEmitterController::deParticleEmitterController |
( |
const char * |
name = "Controller" | ) |
|
Create controller with range 0 to 1 and the value 0.
◆ ~deParticleEmitterController()
deParticleEmitterController::~deParticleEmitterController |
( |
| ) |
|
◆ GetClamp()
bool deParticleEmitterController::GetClamp |
( |
| ) |
const |
|
inline |
Values passed the range are clamped or wrapped around.
◆ GetFrozen()
bool deParticleEmitterController::GetFrozen |
( |
| ) |
const |
|
inline |
Che controller is frozen.
◆ GetLower()
float deParticleEmitterController::GetLower |
( |
| ) |
const |
|
inline |
◆ GetName()
const decString& deParticleEmitterController::GetName |
( |
| ) |
const |
|
inline |
◆ GetUpper()
float deParticleEmitterController::GetUpper |
( |
| ) |
const |
|
inline |
◆ GetValue()
float deParticleEmitterController::GetValue |
( |
| ) |
const |
|
inline |
◆ Increment()
void deParticleEmitterController::Increment |
( |
float |
amount | ) |
|
◆ operator=()
Copy controller parameters.
◆ SetClamp()
void deParticleEmitterController::SetClamp |
( |
bool |
clamp | ) |
|
Set if values passed the range are clamped or wrapped around.
◆ SetFrozen()
void deParticleEmitterController::SetFrozen |
( |
bool |
frozen | ) |
|
Set if controller is frozen.
◆ SetName()
void deParticleEmitterController::SetName |
( |
const char * |
name | ) |
|
◆ SetRange()
void deParticleEmitterController::SetRange |
( |
float |
lower, |
|
|
float |
upper |
|
) |
| |
◆ SetValue()
void deParticleEmitterController::SetValue |
( |
float |
value | ) |
|
The documentation for this class was generated from the following file: