Changeset 8724 in orxonox.OLD for trunk/src/lib/graphics/importer/md3/md3_animation.h
- Timestamp:
- Jun 22, 2006, 3:14:58 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/importer/md3/md3_animation.h
r8490 r8724 11 11 #include <string> 12 12 13 namespace md3 14 { 13 15 14 typedef struct AnimationType 15 {}; 16 typedef enum MD3AnimationType { 17 LEGS = 0, //!< animation only applicatble to the legs. top level model loaded from lower.md3 18 TORSO, //!< animation only applicatboe to the torso. normaly loaded from upper.md3 19 BOTH, //!< animation is applicable on both 20 ALL, //!< animation is applicable to all submodels 21 22 NUM_ANIMATION_TYPE //!< number of animations 23 }; 24 25 26 typedef struct MD3AnimationMap { 27 std::string animationName; 28 MD3AnimationType animationType; 29 }; 30 31 16 32 17 33 … … 24 40 public: 25 41 MD3Animation(); 26 MD3Animation(std::string line);27 42 virtual ~MD3Animation(); 28 43 … … 33 48 34 49 public: 35 AnimationType type; //!< specifies for what parts of a model this animation is appilcable (e.g. LEGS, BOTH)36 std::string name;//!< name of the animation50 MD3AnimationType type; //!< specifies for what parts of a model this animation is appilcable (e.g. LEGS) 51 std::string name; //!< name of the animation 37 52 38 int offset;//!< for LEGS animation, this is the offset value to skip TORSO frames39 int first;//!< first frame40 int numFrames;//!< the number of frames in the anumation. < 0 means that all available frames used41 int numLoopFrames;//!< number of looping frames42 int fps;//!< frames per second53 int offset; //!< for LEGS animation, this is the offset value to skip TORSO frames 54 int first; //!< first frame 55 int numFrames; //!< the number of frames in the anumation. < 0 means that all available frames used 56 int numLoopFrames; //!< number of looping frames 57 int fps; //!< frames per second 43 58 44 59 static MD3AnimationMap animationList[25]; //!< the animation list 45 60 }; 46 61 47 62 } 48 63 #endif /* _MD3_ANIMATION_H */
Note: See TracChangeset
for help on using the changeset viewer.