Duckcpp 2.1.0
Duckcpp 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 duckcpp/duckcpp.hpp
4
5#ifndef DCPP_I_ANIMATED_MESH_MD2_HPP_INCLUDED
6#define DCPP_I_ANIMATED_MESH_MD2_HPP_INCLUDED
7
8#include <duckcpp/core/engine/IAnimatedMesh.hpp>
9
10namespace dcpp
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
56 dcpp::int32_kt& outEnd, dcpp::int32_kt& outFPS) const = 0;
57
59
64 virtual bool getFrameLoop(const dcpp::char_kt* name,
65 dcpp::int32_kt& outBegin, dcpp::int32_kt& outEnd, dcpp::int32_kt& outFPS) const = 0;
66
68 virtual dcpp::int32_kt getAnimationCount() const = 0;
69
71
72 virtual const dcpp::char_kt* getAnimationName(dcpp::int32_kt nr) const = 0;
73 };
74
75} // end namespace scene
76} // end namespace dcpp
77
78#endif
Interface for using some special functions of MD2 meshes.
Definition IAnimatedMeshMD2.hpp:46
virtual bool getFrameLoop(const dcpp::char_kt *name, dcpp::int32_kt &outBegin, dcpp::int32_kt &outEnd, dcpp::int32_kt &outFPS) const =0
Get frame loop data for a special MD2 animation type, identified by name.
virtual void getFrameLoop(EMD2_ANIMATION_TYPE l, dcpp::int32_kt &outBegin, dcpp::int32_kt &outEnd, dcpp::int32_kt &outFPS) const =0
Get frame loop data for a default MD2 animation type.
virtual const dcpp::char_kt * getAnimationName(dcpp::int32_kt nr) const =0
Get name of md2 animation.
virtual dcpp::int32_kt getAnimationCount() const =0
Get amount of md2 animations in this file.
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 Duckcpp 1.6, position2d is a synonym for vector2d.
Definition shared_device.hpp:34
char char_kt
8 bit character variable.
Definition irrTypes.hpp:37
signed int int32_kt
32 bit signed variable.
Definition irrTypes.hpp:72

Duckcpp    @cppfx.xyz