d6c4bf3302
This was SVN commit r2350.
36 lines
982 B
C++
Executable File
36 lines
982 B
C++
Executable File
///////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Name: SkeletonAnim.h
|
|
// Author: Rich Cross
|
|
// Contact: rich@wildfiregames.com
|
|
//
|
|
///////////////////////////////////////////////////////////////////////////////
|
|
|
|
#ifndef _SKELETONANIM_H
|
|
#define _SKELETONANIM_H
|
|
|
|
#include "Bound.h"
|
|
|
|
class CSkeletonAnimDef;
|
|
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////
|
|
// CSkeletonAnim: an instance of a CSkeletonAnimDef, for application onto a model
|
|
class CSkeletonAnim
|
|
{
|
|
public:
|
|
// the name of the action which uses this animation (e.g. "idle")
|
|
CStr m_Name;
|
|
// the raw animation frame data
|
|
CSkeletonAnimDef* m_AnimDef;
|
|
// speed at which this animation runs
|
|
float m_Speed;
|
|
// time(s) during the animation at which the interesting bit(s) happens (fractional)
|
|
float m_ActionPos;
|
|
float m_ActionPos2;
|
|
// object space bounds of the model when this animation is applied to it
|
|
CBound m_ObjectBounds;
|
|
};
|
|
|
|
#endif
|