Particles::EnvelopeSampleBuffer Class Reference
#include <envelopesamplebuffer.h>
Detailed Description
A lookup table for pre-sampled envelope curves.(C) 2008 Radon Labs GmbH
Public Member Functions | |
EnvelopeSampleBuffer () | |
constructor | |
~EnvelopeSampleBuffer () | |
destructor | |
void | Setup (const EmitterAttrs &emitterAttrs, SizeT numSamples) |
setup the sample buffer | |
void | Discard () |
discard the sample buffer | |
bool | IsValid () const |
return true if object has been setup | |
IndexT | AsSampleIndex (float t) const |
convert t-value (0.0 to 1.0) into a lookup index | |
float * | LookupSamples (IndexT sampleIndex) const |
get pointer to samples, index into array by EmitterAttrs::EnvelopeAttr | |
SizeT | GetNumSamples () const |
get the number of samples per attribute | |
const float * | GetSampleBuffer () const |
get the sample buffer |