forked from 0ad/0ad
bcabe3aa53
This was SVN commit r2157.
33 lines
869 B
C++
Executable File
33 lines
869 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 raw animation frame data
|
|
CSkeletonAnimDef* m_AnimDef;
|
|
// speed at which this animation runs
|
|
float m_Speed;
|
|
// time during the animation at which the interesting bit happens (msec)
|
|
size_t m_ActionPos;
|
|
// object space bounds of the model when this animation is applied to it
|
|
CBound m_ObjectBounds;
|
|
};
|
|
|
|
#endif
|