Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 22, 2006, 3:14:58 PM (19 years ago)
Author:
bensch
Message:

merged the bsp-model-stuff back here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/importer/md3/md3_animation.h

    r8490 r8724  
    1111#include <string>
    1212
     13namespace md3
     14{
    1315
    14 typedef struct AnimationType
    15 {};
     16typedef 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
     26typedef struct MD3AnimationMap {
     27  std::string        animationName;
     28  MD3AnimationType   animationType;
     29};
     30
     31
    1632
    1733
     
    2440  public:
    2541    MD3Animation();
    26     MD3Animation(std::string line);
    2742    virtual ~MD3Animation();
    2843
     
    3348
    3449  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 animation
     50    MD3AnimationType      type;                      //!< specifies for what parts of a model this animation is appilcable (e.g. LEGS)
     51    std::string           name;                      //!< name of the animation
    3752
    38     int              offset;                      //!< for LEGS animation, this is the offset value to skip TORSO frames
    39     int              first;                       //!< first frame
    40     int              numFrames;                   //!< the number of frames in the anumation. < 0 means that all available frames used
    41     int              numLoopFrames;               //!< number of looping frames
    42     int              fps;                         //!< frames per second
     53    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
    4358
    44 
     59    static MD3AnimationMap animationList[25];         //!< the animation list
    4560};
    4661
    47 
     62}
    4863#endif /* _MD3_ANIMATION_H */
Note: See TracChangeset for help on using the changeset viewer.