Last change
on this file since 8617 was
8490,
checked in by patrick, 18 years ago
|
merged the bsp branche back to trunk
|
File size:
1.3 KB
|
Line | |
---|
1 | /*! |
---|
2 | * @file md3_animation.h |
---|
3 | * |
---|
4 | * Code heavely inspired by: JAVA MD3 Model Viewer - A Java based Quake 3 model viewer |
---|
5 | * Copyright (C) 1999 Erwin 'KLR8' Vervaet |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef _MD3_ANIMATION_H |
---|
9 | #define _MD3_ANIMATION_H |
---|
10 | |
---|
11 | #include <string> |
---|
12 | |
---|
13 | |
---|
14 | typedef struct AnimationType |
---|
15 | {}; |
---|
16 | |
---|
17 | |
---|
18 | /** |
---|
19 | * a class with metadata describing an MD3 model animation |
---|
20 | */ |
---|
21 | class MD3Animation |
---|
22 | { |
---|
23 | |
---|
24 | public: |
---|
25 | MD3Animation(); |
---|
26 | MD3Animation(std::string line); |
---|
27 | virtual ~MD3Animation(); |
---|
28 | |
---|
29 | void init(); |
---|
30 | |
---|
31 | std::string toString() { return std::string("Name: " + this->name); } |
---|
32 | |
---|
33 | |
---|
34 | 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 |
---|
37 | |
---|
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 |
---|
43 | |
---|
44 | |
---|
45 | }; |
---|
46 | |
---|
47 | |
---|
48 | #endif /* _MD3_ANIMATION_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.