Nebula
|
#include <envelopesamplebuffer.h>
A lookup table for pre-sampled envelope curves.
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 | |
Private Attributes | |
SizeT | numSamples |
float * | buffer |
Particles::EnvelopeSampleBuffer::EnvelopeSampleBuffer | ( | ) |
constructor
Particles::EnvelopeSampleBuffer::~EnvelopeSampleBuffer | ( | ) |
destructor
|
inline |
convert t-value (0.0 to 1.0) into a lookup index
void Particles::EnvelopeSampleBuffer::Discard | ( | ) |
discard the sample buffer
|
inline |
get the number of samples per attribute
|
inline |
get the sample buffer
|
inline |
return true if object has been setup
|
inline |
get pointer to samples, index into array by EmitterAttrs::EnvelopeAttr
void Particles::EnvelopeSampleBuffer::Setup | ( | const EmitterAttrs & | emitterAttrs, |
SizeT | numSamples ) |
setup the sample buffer
|
private |
|
private |