Pyrogenesis trunk
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
CSkeletonAnimDef Class Reference

#include <SkeletonAnimDef.h>

Public Types

enum  { FILE_VERSION = 1 }
 
enum  { FILE_READ_VERSION = 1 }
 
typedef CBoneState Key
 

Public Member Functions

 CSkeletonAnimDef ()
 
 ~CSkeletonAnimDef ()
 
size_t GetNumKeys () const
 
KeyGetKey (size_t frame, size_t bone)
 
const KeyGetKey (size_t frame, size_t bone) const
 
float GetDuration () const
 
float GetFrameTime () const
 
size_t GetNumFrames () const
 
void BuildBoneMatrices (float time, CMatrix3D *matrices, bool loop) const
 

Static Public Member Functions

static std::unique_ptr< CSkeletonAnimDefLoad (const VfsPath &filename)
 
static void Save (const VfsPath &pathname, const CSkeletonAnimDef &anim)
 

Public Attributes

float m_FrameTime
 
size_t m_NumKeys
 
size_t m_NumFrames
 
std::vector< Keym_Keys
 
u32 m_UID
 

Member Typedef Documentation

◆ Key

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
FILE_READ_VERSION 

◆ anonymous enum

anonymous enum
Enumerator
FILE_VERSION 

Constructor & Destructor Documentation

◆ CSkeletonAnimDef()

CSkeletonAnimDef::CSkeletonAnimDef ( )

◆ ~CSkeletonAnimDef()

CSkeletonAnimDef::~CSkeletonAnimDef ( )

Member Function Documentation

◆ BuildBoneMatrices()

void CSkeletonAnimDef::BuildBoneMatrices ( float  time,
CMatrix3D matrices,
bool  loop 
) const

◆ GetDuration()

float CSkeletonAnimDef::GetDuration ( ) const
inline

◆ GetFrameTime()

float CSkeletonAnimDef::GetFrameTime ( ) const
inline

◆ GetKey() [1/2]

Key & CSkeletonAnimDef::GetKey ( size_t  frame,
size_t  bone 
)
inline

◆ GetKey() [2/2]

const Key & CSkeletonAnimDef::GetKey ( size_t  frame,
size_t  bone 
) const
inline

◆ GetNumFrames()

size_t CSkeletonAnimDef::GetNumFrames ( ) const
inline

◆ GetNumKeys()

size_t CSkeletonAnimDef::GetNumKeys ( ) const
inline

◆ Load()

std::unique_ptr< CSkeletonAnimDef > CSkeletonAnimDef::Load ( const VfsPath filename)
static

◆ Save()

void CSkeletonAnimDef::Save ( const VfsPath pathname,
const CSkeletonAnimDef anim 
)
static

Member Data Documentation

◆ m_FrameTime

float CSkeletonAnimDef::m_FrameTime

◆ m_Keys

std::vector<Key> CSkeletonAnimDef::m_Keys

◆ m_NumFrames

size_t CSkeletonAnimDef::m_NumFrames

◆ m_NumKeys

size_t CSkeletonAnimDef::m_NumKeys

◆ m_UID

u32 CSkeletonAnimDef::m_UID

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