Nebula
Loading...
Searching...
No Matches
animation.h File Reference

Go to the source code of this file.

Classes

struct  CoreAnimation::AnimationId
 
struct  CoreAnimation::AnimationCreateInfo
 

Namespaces

namespace  CoreAnimation
 An animation resource holds a set of animations from a loaded NAX file.
 

Typedefs

typedef Ids::IdAllocator< Util::FixedArray< AnimClip >, Util::FixedArray< AnimCurve >, Util::FixedArray< AnimEvent >, Util::HashTable< Util::StringAtom, IndexT, 32 >, Ptr< AnimKeyBuffer > > CoreAnimation::AnimAllocator
 

Enumerations

enum  {
  CoreAnimation::Anim_Clips , CoreAnimation::Anim_Curves , CoreAnimation::Anim_Events , CoreAnimation::Anim_ClipIndices ,
  CoreAnimation::Anim_KeyBuffer
}
 

Functions

AnimKeyBuffer::Interval CoreAnimation::FindNextInterval (const AnimCurve &curve, const Timing::Tick time, uint &key, const AnimKeyBuffer::Interval *sampleTimes)
 
void CoreAnimation::AnimSampleStep (const AnimClip &clip, const Util::FixedArray< AnimCurve > &curves, const Timing::Tick time, const Math::vec4 &velocityScale, const Util::FixedArray< Math::vec4 > &idleSamples, const float *srcSamplePtr, const AnimKeyBuffer::Interval *intervalPtr, uint *outSampleKeyPtr, float *outSamplePtr, uchar *outSampleCounts)
 
void CoreAnimation::AnimSampleLinear (const AnimClip &clip, const Util::FixedArray< AnimCurve > &curves, const Timing::Tick time, const Math::vec4 &velocityScale, const Util::FixedArray< Math::vec4 > &idleSamples, const float *srcSamplePtr, const AnimKeyBuffer::Interval *intervalPtr, uint *outSampleKeyPtr, float *outSamplePtr, uchar *outSampleCounts)
 
void CoreAnimation::AnimMix (const AnimClip &clip, const SizeT numSamples, const AnimSampleMask *mask, float mixWeight, const float *src0SamplePtr, const float *src1SamplePtr, const uchar *src0SampleCounts, const uchar *src1SampleCounts, float *outSamplePtr, uchar *outSampleCounts)
 
const AnimationId CoreAnimation::CreateAnimation (const AnimationCreateInfo &info)
 Create animation resource.
 
void CoreAnimation::DestroyAnimation (const AnimationId id)
 Destroy animation resource.
 
const Util::FixedArray< AnimClip > & CoreAnimation::AnimGetClips (const AnimationId &id)
 Get clips.
 
const AnimClipCoreAnimation::AnimGetClip (const AnimationId &id, const IndexT index)
 Get single clip.
 
const Ptr< AnimKeyBuffer > & CoreAnimation::AnimGetBuffer (const AnimationId &id)
 Get anim buffer.
 
const Util::FixedArray< AnimCurve > & CoreAnimation::AnimGetCurves (const AnimationId &id)
 Get curves.
 
const IndexT CoreAnimation::AnimGetIndex (const AnimationId &id, const Util::StringAtom &name)
 Get anim clip index.