1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
-
-
- #ifndef _SKELETALMODEL_H_
- #define _SKELETALMODEL_H_
-
- #include <Vector.h>
- #include <MatMath.h>
-
- typedef struct {
- int mesh;
- vec3_t off;
- vec3_t rot;
- char flag;
- } bone_tag_t;
-
- typedef struct {
- Vector<bone_tag_t *> tag;
- vec3_t pos;
- float yaw;
- } bone_frame_t;
-
- typedef struct {
- int id;
- char rate;
- Vector<bone_frame_t *> frame;
- } animation_frame_t;
-
- typedef struct {
- int id;
- bool tr4Overlay;
- bool pigtails;
- int ponytailId;
- vec3_t ponytail;
- int ponytailMeshId;
- unsigned int ponytailNumMeshes;
- float ponytailAngle;
- float ponyOff;
- float ponyOff2;
- Vector<animation_frame_t *> animation;
- } skeletal_model_t;
-
-
- class SkeletalModel {
- public:
-
-
- SkeletalModel();
-
-
-
- ~SkeletalModel();
-
- int getAnimation();
-
- int getFrame();
-
- int getIdleAnimation();
-
- void setModel(skeletal_model_t *mdl);
-
- void setAnimation(int index);
-
- void setFrame(int index);
-
- void setIdleAnimation(int index);
-
- unsigned int flags;
- skeletal_model_t *model;
- float time;
- float lastTime;
- float rate;
-
- private:
- int mBoneFrame;
- int mAnimationFrame;
- int mIdleAnimation;
- };
-
- #endif
|