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

#include <animkeybuffer.h>

Detailed Description

A simple buffer of vec4 animation keys.

Inherits Core::RefCounted.

Classes

struct  Interval

Public Member Functions

 AnimKeyBuffer ()
 constructor
virtual ~AnimKeyBuffer ()
 destructor
void Setup (SizeT numIntervals, SizeT numKeys, void *intervalPtr, void *keyPtr)
 setup the buffer
void Discard ()
 discard the buffer
bool IsValid () const
 return true if the object has been setup
SizeT GetNumKeys () const
 get number of keys in buffer
SizeT GetByteSize () const
 get buffer size in bytes
const float * GetKeyBufferPointer () const
 Get direct pointer to keys.
const AnimKeyBuffer::IntervalGetIntervalBufferPointer () const
 get direct pointer to interval buffer
Public Member Functions inherited from Core::RefCounted
 RefCounted ()
 constructor
int GetRefCount () const
 get the current refcount
void AddRef ()
 increment refcount by one
void Release ()
 decrement refcount and destroy object if refcount is zero
bool IsInstanceOf (const Rtti &rtti) const
 return true if this object is instance of given class
bool IsInstanceOf (const Util::String &className) const
 return true if this object is instance of given class by string
bool IsInstanceOf (const Util::FourCC &classFourCC) const
 return true if this object is instance of given class by fourcc
bool IsA (const Rtti &rtti) const
 return true if this object is instance of given class, or a derived class
bool IsA (const Util::String &rttiName) const
 return true if this object is instance of given class, or a derived class, by string
bool IsA (const Util::FourCC &rttiFourCC) const
 return true if this object is instance of given class, or a derived class, by fourcc
const Util::StringGetClassName () const
 get the class name
Util::FourCC GetClassFourCC () const
 get the class FourCC code

Private Member Functions

 __DeclareClass (AnimKeyBuffer)

Private Attributes

SizeT numKeys
SizeT numIntervals
uint mapCount
float * keyBuffer
AnimKeyBuffer::IntervalintervalBuffer

Additional Inherited Members

Static Public Member Functions inherited from Core::RefCounted
static void DumpRefCountingLeaks ()
 dump refcounting leaks, call at end of application (NEBULA_DEBUG builds only!)
Protected Member Functions inherited from Core::RefCounted
virtual ~RefCounted ()
 destructor (called when refcount reaches zero)

Constructor & Destructor Documentation

◆ AnimKeyBuffer()

CoreAnimation::AnimKeyBuffer::AnimKeyBuffer ( )

constructor

◆ ~AnimKeyBuffer()

CoreAnimation::AnimKeyBuffer::~AnimKeyBuffer ( )
virtual

destructor

Member Function Documentation

◆ __DeclareClass()

CoreAnimation::AnimKeyBuffer::__DeclareClass ( AnimKeyBuffer )
private

◆ Discard()

void CoreAnimation::AnimKeyBuffer::Discard ( )

discard the buffer

◆ GetByteSize()

SizeT CoreAnimation::AnimKeyBuffer::GetByteSize ( ) const
inline

get buffer size in bytes

◆ GetIntervalBufferPointer()

const AnimKeyBuffer::Interval * CoreAnimation::AnimKeyBuffer::GetIntervalBufferPointer ( ) const
inline

get direct pointer to interval buffer

◆ GetKeyBufferPointer()

const float * CoreAnimation::AnimKeyBuffer::GetKeyBufferPointer ( ) const
inline

Get direct pointer to keys.

◆ GetNumKeys()

SizeT CoreAnimation::AnimKeyBuffer::GetNumKeys ( ) const
inline

get number of keys in buffer

◆ IsValid()

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

return true if the object has been setup

◆ Setup()

void CoreAnimation::AnimKeyBuffer::Setup ( SizeT numIntervals,
SizeT numKeys,
void * intervalPtr,
void * keyPtr )

setup the buffer

Member Data Documentation

◆ intervalBuffer

AnimKeyBuffer::Interval* CoreAnimation::AnimKeyBuffer::intervalBuffer
private

◆ keyBuffer

float* CoreAnimation::AnimKeyBuffer::keyBuffer
private

◆ mapCount

uint CoreAnimation::AnimKeyBuffer::mapCount
private

◆ numIntervals

SizeT CoreAnimation::AnimKeyBuffer::numIntervals
private

◆ numKeys

SizeT CoreAnimation::AnimKeyBuffer::numKeys
private

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