diff options
Diffstat (limited to '')
-rw-r--r-- | libraries/irrlicht-1.8/include/IAnimatedMeshMD2.h | 158 |
1 files changed, 79 insertions, 79 deletions
diff --git a/libraries/irrlicht-1.8/include/IAnimatedMeshMD2.h b/libraries/irrlicht-1.8/include/IAnimatedMeshMD2.h index 6830f37..333394e 100644 --- a/libraries/irrlicht-1.8/include/IAnimatedMeshMD2.h +++ b/libraries/irrlicht-1.8/include/IAnimatedMeshMD2.h | |||
@@ -1,79 +1,79 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __I_ANIMATED_MESH_MD2_H_INCLUDED__ | 5 | #ifndef __I_ANIMATED_MESH_MD2_H_INCLUDED__ |
6 | #define __I_ANIMATED_MESH_MD2_H_INCLUDED__ | 6 | #define __I_ANIMATED_MESH_MD2_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IAnimatedMesh.h" | 8 | #include "IAnimatedMesh.h" |
9 | 9 | ||
10 | namespace irr | 10 | namespace irr |
11 | { | 11 | { |
12 | namespace scene | 12 | namespace scene |
13 | { | 13 | { |
14 | 14 | ||
15 | //! Types of standard md2 animations | 15 | //! Types of standard md2 animations |
16 | enum EMD2_ANIMATION_TYPE | 16 | enum EMD2_ANIMATION_TYPE |
17 | { | 17 | { |
18 | EMAT_STAND = 0, | 18 | EMAT_STAND = 0, |
19 | EMAT_RUN, | 19 | EMAT_RUN, |
20 | EMAT_ATTACK, | 20 | EMAT_ATTACK, |
21 | EMAT_PAIN_A, | 21 | EMAT_PAIN_A, |
22 | EMAT_PAIN_B, | 22 | EMAT_PAIN_B, |
23 | EMAT_PAIN_C, | 23 | EMAT_PAIN_C, |
24 | EMAT_JUMP, | 24 | EMAT_JUMP, |
25 | EMAT_FLIP, | 25 | EMAT_FLIP, |
26 | EMAT_SALUTE, | 26 | EMAT_SALUTE, |
27 | EMAT_FALLBACK, | 27 | EMAT_FALLBACK, |
28 | EMAT_WAVE, | 28 | EMAT_WAVE, |
29 | EMAT_POINT, | 29 | EMAT_POINT, |
30 | EMAT_CROUCH_STAND, | 30 | EMAT_CROUCH_STAND, |
31 | EMAT_CROUCH_WALK, | 31 | EMAT_CROUCH_WALK, |
32 | EMAT_CROUCH_ATTACK, | 32 | EMAT_CROUCH_ATTACK, |
33 | EMAT_CROUCH_PAIN, | 33 | EMAT_CROUCH_PAIN, |
34 | EMAT_CROUCH_DEATH, | 34 | EMAT_CROUCH_DEATH, |
35 | EMAT_DEATH_FALLBACK, | 35 | EMAT_DEATH_FALLBACK, |
36 | EMAT_DEATH_FALLFORWARD, | 36 | EMAT_DEATH_FALLFORWARD, |
37 | EMAT_DEATH_FALLBACKSLOW, | 37 | EMAT_DEATH_FALLBACKSLOW, |
38 | EMAT_BOOM, | 38 | EMAT_BOOM, |
39 | 39 | ||
40 | //! Not an animation, but amount of animation types. | 40 | //! Not an animation, but amount of animation types. |
41 | EMAT_COUNT | 41 | EMAT_COUNT |
42 | }; | 42 | }; |
43 | 43 | ||
44 | //! Interface for using some special functions of MD2 meshes | 44 | //! Interface for using some special functions of MD2 meshes |
45 | class IAnimatedMeshMD2 : public IAnimatedMesh | 45 | class IAnimatedMeshMD2 : public IAnimatedMesh |
46 | { | 46 | { |
47 | public: | 47 | public: |
48 | 48 | ||
49 | //! Get frame loop data for a default MD2 animation type. | 49 | //! Get frame loop data for a default MD2 animation type. |
50 | /** \param l The EMD2_ANIMATION_TYPE to get the frames for. | 50 | /** \param l The EMD2_ANIMATION_TYPE to get the frames for. |
51 | \param outBegin The returned beginning frame for animation type specified. | 51 | \param outBegin The returned beginning frame for animation type specified. |
52 | \param outEnd The returned ending frame for the animation type specified. | 52 | \param outEnd The returned ending frame for the animation type specified. |
53 | \param outFPS The number of frames per second, this animation should be played at. | 53 | \param outFPS The number of frames per second, this animation should be played at. |
54 | \return beginframe, endframe and frames per second for a default MD2 animation type. */ | 54 | \return beginframe, endframe and frames per second for a default MD2 animation type. */ |
55 | virtual void getFrameLoop(EMD2_ANIMATION_TYPE l, s32& outBegin, | 55 | virtual void getFrameLoop(EMD2_ANIMATION_TYPE l, s32& outBegin, |
56 | s32& outEnd, s32& outFPS) const = 0; | 56 | s32& outEnd, s32& outFPS) const = 0; |
57 | 57 | ||
58 | //! Get frame loop data for a special MD2 animation type, identified by name. | 58 | //! Get frame loop data for a special MD2 animation type, identified by name. |
59 | /** \param name Name of the animation. | 59 | /** \param name Name of the animation. |
60 | \param outBegin The returned beginning frame for animation type specified. | 60 | \param outBegin The returned beginning frame for animation type specified. |
61 | \param outEnd The returned ending frame for the animation type specified. | 61 | \param outEnd The returned ending frame for the animation type specified. |
62 | \param outFPS The number of frames per second, this animation should be played at. | 62 | \param outFPS The number of frames per second, this animation should be played at. |
63 | \return beginframe, endframe and frames per second for a special MD2 animation type. */ | 63 | \return beginframe, endframe and frames per second for a special MD2 animation type. */ |
64 | virtual bool getFrameLoop(const c8* name, | 64 | virtual bool getFrameLoop(const c8* name, |
65 | s32& outBegin, s32& outEnd, s32& outFPS) const = 0; | 65 | s32& outBegin, s32& outEnd, s32& outFPS) const = 0; |
66 | 66 | ||
67 | //! Get amount of md2 animations in this file. | 67 | //! Get amount of md2 animations in this file. |
68 | virtual s32 getAnimationCount() const = 0; | 68 | virtual s32 getAnimationCount() const = 0; |
69 | 69 | ||
70 | //! Get name of md2 animation. | 70 | //! Get name of md2 animation. |
71 | /** \param nr: Zero based index of animation. */ | 71 | /** \param nr: Zero based index of animation. */ |
72 | virtual const c8* getAnimationName(s32 nr) const = 0; | 72 | virtual const c8* getAnimationName(s32 nr) const = 0; |
73 | }; | 73 | }; |
74 | 74 | ||
75 | } // end namespace scene | 75 | } // end namespace scene |
76 | } // end namespace irr | 76 | } // end namespace irr |
77 | 77 | ||
78 | #endif | 78 | #endif |
79 | 79 | ||