22 #ifndef TETRAEDGE_TE_TE_MODEL_ANIMATION_H 23 #define TETRAEDGE_TE_TE_MODEL_ANIMATION_H 25 #include "common/path.h" 26 #include "common/stream.h" 28 #include "tetraedge/te/te_animation.h" 29 #include "tetraedge/te/te_intrusive_ptr.h" 30 #include "tetraedge/te/te_model.h" 31 #include "tetraedge/te/te_quaternion.h" 32 #include "tetraedge/te/te_resource.h" 33 #include "tetraedge/te/te_trs.h" 34 #include "tetraedge/te/te_vector3f32.h" 64 int calcCurrentFrame(
double millis);
68 int firstFrame()
const;
70 TeQuaternion getNMORotation(uint boneNo,
float amount)
const;
71 TeVector3f32 getNMOTranslation(uint boneNo,
float amount)
const;
73 TeTRS getTRS(uint boneNo, uint frame,
bool forceUseFbx)
const;
74 int lastFrame()
const;
78 void reset()
override;
79 void resizeFBXArrays(uint len);
80 void resizeNMOArrays(uint len);
84 void setFrameLimits(
int framemin,
int framemax) {
85 _firstFrame = framemin;
86 _lastFrame = framemax;
88 void setRotation(uint num,
float amount,
const TeQuaternion &rot);
90 void setTranslation(uint num,
float amount,
const TeVector3f32 &trans);
92 void update(
double millis)
override;
94 int curFrame2()
const {
return _curFrame2; }
95 float speed()
const {
return _speed; }
96 const Common::Path &loadedPath()
const {
return _loadedPath; }
98 static void deleteLaterStatic(
TeModelAnimation *obj) { TeObject::deleteLaterStatic(obj); }
115 bool _curFrameValFresh;
116 bool _finishedSignalPending;
127 #endif // TETRAEDGE_TE_TE_MODEL_ANIMATION_H
Definition: detection.h:27
Definition: te_quaternion.h:32
Definition: te_resource.h:31
Definition: te_model_animation.h:50
Definition: te_model_animation.h:42
Graphics::Surface * scale(const Graphics::Surface &srcImage, int xSize, int ySize)
Definition: te_model_animation.h:40
Definition: te_matrix4x4.h:37
Definition: te_model_animation.h:46
Definition: te_intrusive_ptr.h:31
Definition: te_animation.h:31
Definition: te_vector3f32.h:33