Nebula
Loading...
Searching...
No Matches
CoreAnimation::AnimSampleBuffer Class Reference

#include <animsamplebuffer.h>

Detailed Description

Stores the result of an animation sampling operation, stores samples key values and sample-counts which keep track of the number of samples which contributed to a mixing result (this is necessary for correct mixing of partial animations).

Public Member Functions

 AnimSampleBuffer ()
 constructor
 
virtual ~AnimSampleBuffer ()
 destructor
 
 AnimSampleBuffer (AnimSampleBuffer &&rhs)
 move operator
 
 AnimSampleBuffer (const AnimSampleBuffer &rhs)
 copy operator
 
void operator= (AnimSampleBuffer &&rhs)
 assign move operator
 
void operator= (const AnimSampleBuffer &rhs)
 assign move operator
 
void Setup (const AnimationId &animResource)
 setup the object from an animation resource
 
void Discard ()
 discard the object
 
bool IsValid () const
 return true if the object has been setup
 
void Reset ()
 Reset the sample buffer.
 
SizeT GetNumSamples () const
 get the number of samples in the buffer
 
float * GetSamplesPointer () const
 get direct pointer to samples
 
ucharGetSampleCountsPointer () const
 get direct pointer to sample counts
 

Private Attributes

AnimationId animResource
 
SizeT numSamples
 
float * samples
 
ucharsampleCounts
 

Constructor & Destructor Documentation

◆ AnimSampleBuffer() [1/3]

CoreAnimation::AnimSampleBuffer::AnimSampleBuffer ( )

constructor

◆ ~AnimSampleBuffer()

CoreAnimation::AnimSampleBuffer::~AnimSampleBuffer ( )
virtual

destructor

◆ AnimSampleBuffer() [2/3]

CoreAnimation::AnimSampleBuffer::AnimSampleBuffer ( AnimSampleBuffer && rhs)

move operator

◆ AnimSampleBuffer() [3/3]

CoreAnimation::AnimSampleBuffer::AnimSampleBuffer ( const AnimSampleBuffer & rhs)

copy operator

Member Function Documentation

◆ Discard()

void CoreAnimation::AnimSampleBuffer::Discard ( )

discard the object

◆ GetNumSamples()

SizeT CoreAnimation::AnimSampleBuffer::GetNumSamples ( ) const
inline

get the number of samples in the buffer

◆ GetSampleCountsPointer()

uchar * CoreAnimation::AnimSampleBuffer::GetSampleCountsPointer ( ) const
inline

get direct pointer to sample counts

◆ GetSamplesPointer()

float * CoreAnimation::AnimSampleBuffer::GetSamplesPointer ( ) const
inline

get direct pointer to samples

◆ IsValid()

bool CoreAnimation::AnimSampleBuffer::IsValid ( ) const
inline

return true if the object has been setup

◆ operator=() [1/2]

void CoreAnimation::AnimSampleBuffer::operator= ( AnimSampleBuffer && rhs)

assign move operator

◆ operator=() [2/2]

void CoreAnimation::AnimSampleBuffer::operator= ( const AnimSampleBuffer & rhs)

assign move operator

◆ Reset()

void CoreAnimation::AnimSampleBuffer::Reset ( )

Reset the sample buffer.

◆ Setup()

void CoreAnimation::AnimSampleBuffer::Setup ( const AnimationId & animResource)

setup the object from an animation resource

Member Data Documentation

◆ animResource

AnimationId CoreAnimation::AnimSampleBuffer::animResource
private

◆ numSamples

SizeT CoreAnimation::AnimSampleBuffer::numSamples
private

◆ sampleCounts

uchar* CoreAnimation::AnimSampleBuffer::sampleCounts
private

◆ samples

float* CoreAnimation::AnimSampleBuffer::samples
private

The documentation for this class was generated from the following files: