00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __NESKELETONANIMATOR_H
00028 #define __NESKELETONANIMATOR_H
00029
00030
00038 #include "base.h"
00039 #include "animator.h"
00040 #include "nodeanimator.h"
00041
00042 #include <vector>
00043
00044
00045
00046 namespace NeoEngine
00047 {
00048
00049
00050
00051
00057 class NEOENGINE_API SkeletonAnimation
00058 {
00059 public:
00060
00062 std::vector< NodeAnimation* > m_vpkChannels;
00063
00065 unsigned int m_uiID;
00066
00068 HashString m_strName;
00069
00071 float m_fLength;
00072
00074 float m_fCurTime;
00075
00076
00079 SkeletonAnimation();
00080
00084 SkeletonAnimation( const SkeletonAnimation &rkAnimation );
00085
00088 virtual ~SkeletonAnimation();
00089
00094 virtual void Update( float fDeltaTime );
00095 };
00096
00097
00098
00099
00100
00101 #ifdef WIN32
00102
00103 # ifdef _MSC_VER
00104 # pragma warning( disable : 4231 )
00105 # endif
00106
00107 # ifndef __HAVE_VECTOR_NESKELETONANIMATION
00108 UDTVectorEXPIMP( class SkeletonAnimation* );
00109 # define __HAVE_VECTOR_NESKELETONANIMATION
00110 # endif
00111
00112 # ifdef _MSC_VER
00113 # ifndef __HAVE_NEANIMATORCONTROLLER_NESKELETONANIMATION
00114 EXPIMP_TEMPLATE template class NEOENGINE_API AnimatorController< class SkeletonAnimation >;
00115 # define __HAVE_NEANIMATORCONTROLLER_NESKELETONANIMATION
00116 # endif
00117 # endif
00118
00119 #endif
00120
00121
00122
00123
00124
00125
00131 class NEOENGINE_API SkeletonAnimatorController : public AnimatorController<SkeletonAnimation>
00132 {
00133 public:
00134
00135
00138 SkeletonAnimatorController() : AnimatorController<SkeletonAnimation>() {}
00139
00143 SkeletonAnimatorController( const SkeletonAnimatorController &rkController ) : AnimatorController<SkeletonAnimation>( rkController ) {}
00144
00147 virtual ~SkeletonAnimatorController() {}
00148 };
00149
00150
00151 };
00152
00153
00154 #endif