graphics
Class CSkeletonAnimDef
in SkeletonAnimDef.h
in SkeletonAnimDef.cpp
- class CSkeletonAnimDef
Constructor Summary |
CSkeletonAnimDef()
CSkeletonAnimDef destructor |
~CSkeletonAnimDef()
BuildBoneMatrices: build matrices for all bones at the given time (in MS) in this
animation |
m_FrameTime
public float m_FrameTime;
m_Keys
public CSkeletonAnimDef::Key* m_Keys;
m_NumFrames
public u32 m_NumFrames;
m_NumKeys
public u32 m_NumKeys;
CSkeletonAnimDef
public CSkeletonAnimDef();
- CSkeletonAnimDef destructor
~CSkeletonAnimDef
public ~CSkeletonAnimDef();
- BuildBoneMatrices: build matrices for all bones at the given time (in MS) in this
animation
BuildBoneMatrices
public void BuildBoneMatrices( float time, CMatrix3D* matrices, bool loop ) const;
- Load: try to load the anim from given file; return a new anim if successful
GetDuration
public float GetDuration() const;
GetFrameTime
public float GetFrameTime() const;
GetKey
public const CSkeletonAnimDef::Key& GetKey( u32 frame, u32 bone ) const;
GetNumFrames
public size_t GetNumFrames() const;
GetNumKeys
public size_t GetNumKeys() const;
Load
public static CSkeletonAnimDef* Load( const char* filename );
- Save: try to save anim to file
Save
public static void Save( const char* filename, const CSkeletonAnimDef* anim );