Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IAnimatedMeshMD2.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_ANIMATED_MESH_MD2_HPP_INCLUDED
6#define NIRT_I_ANIMATED_MESH_MD2_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/IAnimatedMesh.hpp>
9
10namespace nirt
11{
12namespace scene
13{
14
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
42 };
43
46 {
47 public:
48
50
55 virtual void getFrameLoop(EMD2_ANIMATION_TYPE l, s32& outBegin,
56 s32& outEnd, s32& outFPS) const = 0;
57
59
64 virtual bool getFrameLoop(const c8* name,
65 s32& outBegin, s32& outEnd, s32& outFPS) const = 0;
66
68 virtual s32 getAnimationCount() const = 0;
69
71
72 virtual const c8* getAnimationName(s32 nr) const = 0;
73 };
74
75} // end namespace scene
76} // end namespace nirt
77
78#endif
Interface for using some special functions of MD2 meshes.
Definition IAnimatedMeshMD2.hpp:46
virtual const c8 * getAnimationName(s32 nr) const =0
Get name of md2 animation.
virtual bool getFrameLoop(const c8 *name, s32 &outBegin, s32 &outEnd, s32 &outFPS) const =0
Get frame loop data for a special MD2 animation type, identified by name.
virtual s32 getAnimationCount() const =0
Get amount of md2 animations in this file.
virtual void getFrameLoop(EMD2_ANIMATION_TYPE l, s32 &outBegin, s32 &outEnd, s32 &outFPS) const =0
Get frame loop data for a default MD2 animation type.
Interface for an animated mesh.
Definition IAnimatedMesh.hpp:21
EMD2_ANIMATION_TYPE
Types of standard md2 animations.
Definition IAnimatedMeshMD2.hpp:17
@ EMAT_COUNT
Not an animation, but amount of animation types.
Definition IAnimatedMeshMD2.hpp:41
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
char c8
8 bit character variable.
Definition irrTypes.hpp:37

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print