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