A container for particle emitter attributes.
Definition emitterattrs.h:20
@ NumEnvelopeAttrs
Definition emitterattrs.h:93
A lookup table for pre-sampled envelope curves.
Definition envelopesamplebuffer.h:19
IndexT AsSampleIndex(float t) const
convert t-value (0.0 to 1.0) into a lookup index
Definition envelopesamplebuffer.h:60
SizeT numSamples
Definition envelopesamplebuffer.h:43
float * LookupSamples(IndexT sampleIndex) const
get pointer to samples, index into array by EmitterAttrs::EnvelopeAttr
Definition envelopesamplebuffer.h:73
EnvelopeSampleBuffer()
constructor
Definition envelopesamplebuffer.cc:15
bool IsValid() const
return true if object has been setup
Definition envelopesamplebuffer.h:51
const float * GetSampleBuffer() const
get the sample buffer
Definition envelopesamplebuffer.h:95
~EnvelopeSampleBuffer()
destructor
Definition envelopesamplebuffer.cc:25
SizeT GetNumSamples() const
get the number of samples per attribute
Definition envelopesamplebuffer.h:86
void Setup(const EmitterAttrs &emitterAttrs, SizeT numSamples)
setup the sample buffer
Definition envelopesamplebuffer.cc:37
void Discard()
discard the sample buffer
Definition envelopesamplebuffer.cc:59
float * buffer
Definition envelopesamplebuffer.h:44
Particle context controls playing and enabling/disabling of particle emitters inside a model.
Definition modelnode.h:37