Nebula
|
#include <emitterattrs.h>
A container for particle emitter attributes.
Classes | |
struct | BoolAttributes |
struct | IntAttributes |
Public Types | |
enum | FloatAttr { EmissionDuration = 0 , ActivityDistance , StartRotationMin , StartRotationMax , Gravity , ParticleStretch , VelocityRandomize , RotationRandomize , SizeRandomize , PrecalcTime , StartDelay , TextureTile , PhasesPerSecond , NumFloatAttrs } |
scalar attributes More... | |
enum | BoolAttr { Looping = 0 , RandomizeRotation , StretchToStart , RenderOldestFirst , ViewAngleFade , Billboard , NumBoolAttrs } |
boolean attributes More... | |
enum | IntAttr { StretchDetail = 0 , AnimPhases , NumIntAttrs } |
integer attributes More... | |
enum | Float4Attr { WindDirection = 0 , NumFloat4Attrs } |
vec4 attributes More... | |
enum | EnvelopeAttr { Red = 0 , Green , Blue , Alpha , EmissionFrequency , LifeTime , StartVelocity , RotationVelocity , Size , SpreadMin , SpreadMax , AirResistance , VelocityFactor , Mass , TimeManipulator , Alignment0 , NumEnvelopeAttrs } |
scalar envelope attributes More... | |
Public Member Functions | |
EmitterAttrs () | |
constructor | |
void | SetFloat (FloatAttr key, float value) |
set float attribute | |
float | GetFloat (FloatAttr key) const |
get float attribute | |
void | SetBool (BoolAttr key, bool value) |
set bool attribute | |
bool | GetBool (BoolAttr key) const |
get bool attribute | |
void | SetInt (IntAttr key, int value) |
set int attribute | |
int | GetInt (IntAttr key) const |
get int attribute | |
void | SetVec4 (Float4Attr key, const Math::vec4 &value) |
set vec4 attribute | |
const Math::vec4 & | GetVec4 (Float4Attr key) const |
get vec4 attribute | |
void | SetEnvelope (EnvelopeAttr key, const EnvelopeCurve &value) |
set envelope attribute | |
const EnvelopeCurve & | GetEnvelope (EnvelopeAttr key) const |
get envelope attribute | |
Private Attributes | |
Math::vec4 | vec4Values [NumFloat4Attrs] |
float | floatValues [NumFloatAttrs] |
EnvelopeCurve | envelopeValues [NumEnvelopeAttrs] |
struct Particles::EmitterAttrs::IntAttributes | intAttributes |
struct Particles::EmitterAttrs::BoolAttributes | boolAttributes |
Particles::EmitterAttrs::EmitterAttrs | ( | ) |
constructor
|
inline |
get bool attribute
|
inline |
get envelope attribute
|
inline |
get float attribute
|
inline |
get int attribute
|
inline |
get vec4 attribute
|
inline |
set bool attribute
|
inline |
set envelope attribute
|
inline |
set float attribute
|
inline |
set int attribute
|
inline |
set vec4 attribute
|
private |
|
private |
|
private |
|
private |
|
private |