Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD

graphics
Class CSkeletonAnimDef

   in SkeletonAnimDef.h
   in SkeletonAnimDef.cpp

class CSkeletonAnimDef


Inner Classes, Typedefs, and Enums
enum CSkeletonAnimDef::anonymous_enum_1
          
enum CSkeletonAnimDef::anonymous_enum_2
          
typedef CSkeletonAnimDef::Key
          
 
Field Summary
 float m_FrameTime
          
 CSkeletonAnimDef::Key* m_Keys
          
 u32 m_NumFrames
          
 u32 m_NumKeys
          
 
Constructor Summary
CSkeletonAnimDef()
          CSkeletonAnimDef destructor
~CSkeletonAnimDef()
          BuildBoneMatrices: build matrices for all bones at the given time (in MS) in this animation
 
Method Summary
 void BuildBoneMatrices( float time, CMatrix3D* matrices, bool loop ) const
          Load: try to load the anim from given file; return a new anim if successful
 float GetDuration() const
          
 float GetFrameTime() const
          
 const CSkeletonAnimDef::Key& GetKey( u32 frame, u32 bone ) const
          
 size_t GetNumFrames() const
          
 size_t GetNumKeys() const
          
 static CSkeletonAnimDef* Load( const char* filename )
          Save: try to save anim to file
 static void Save( const char* filename, const CSkeletonAnimDef* anim )
          
 

Field Detail

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;


Constructor Detail

CSkeletonAnimDef

public CSkeletonAnimDef();
CSkeletonAnimDef destructor

~CSkeletonAnimDef

public ~CSkeletonAnimDef();
BuildBoneMatrices: build matrices for all bones at the given time (in MS) in this animation


Method Detail

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 );

 Overview   Project   Class   Tree   Deprecated   Index 
0 A.D.
Generated on September 04, 2007 at 18:13
CppDoc v2.4.0
FRAMES    NO FRAMES
SUMMARY:  INNER | FIELD | CONSTR | METHOD