Loading...
Searching...
No Matches
IAnimatedMeshMD2.h
Go to the documentation of this file.
// Copyright (C) 2002-2012 Nikolaus Gebhardt
// This file is part of the "Irrlicht Engine".
// For conditions of distribution and use, see copyright notice in irrlicht.h
#ifndef __I_ANIMATED_MESH_MD2_H_INCLUDED__
#define __I_ANIMATED_MESH_MD2_H_INCLUDED__
#include "IAnimatedMesh.h"
namespace irr
{
namespace scene
{
enum EMD2_ANIMATION_TYPE
{
EMAT_STAND = 0,
EMAT_RUN,
EMAT_ATTACK,
EMAT_PAIN_A,
EMAT_PAIN_B,
EMAT_PAIN_C,
EMAT_JUMP,
EMAT_FLIP,
EMAT_SALUTE,
EMAT_FALLBACK,
EMAT_WAVE,
EMAT_POINT,
EMAT_CROUCH_STAND,
EMAT_CROUCH_WALK,
EMAT_CROUCH_ATTACK,
EMAT_CROUCH_PAIN,
EMAT_CROUCH_DEATH,
EMAT_DEATH_FALLBACK,
EMAT_DEATH_FALLFORWARD,
EMAT_DEATH_FALLBACKSLOW,
EMAT_BOOM,
EMAT_COUNT
};
class IAnimatedMeshMD2 : public IAnimatedMesh
{
public:
virtual void getFrameLoop(EMD2_ANIMATION_TYPE l, s32& outBegin,
s32& outEnd, s32& outFPS) const = 0;
virtual bool getFrameLoop(const c8* name,
s32& outBegin, s32& outEnd, s32& outFPS) const = 0;
virtual s32 getAnimationCount() const = 0;
virtual const c8* getAnimationName(s32 nr) const = 0;
};
} // end namespace scene
} // end namespace irr
#endif
IAnimatedMesh.h
irr::scene::IAnimatedMesh
Interface for an animated mesh.
Definition IAnimatedMesh.h:63
irr::scene::IAnimatedMeshMD2
Interface for using some special functions of MD2 meshes.
Definition IAnimatedMeshMD2.h:46
irr::scene::IAnimatedMeshMD2::getFrameLoop
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.
irr::scene::IAnimatedMeshMD2::getFrameLoop
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.
irr::scene::IAnimatedMeshMD2::getAnimationName
virtual const c8 * getAnimationName(s32 nr) const =0
Get name of md2 animation.
irr::scene::IAnimatedMeshMD2::getAnimationCount
virtual s32 getAnimationCount() const =0
Get amount of md2 animations in this file.
irr::scene
All scene management can be found in this namespace: Mesh loading, special scene nodes like octrees a...
Definition CDynamicMeshBuffer.h:16
irr::scene::EMD2_ANIMATION_TYPE
EMD2_ANIMATION_TYPE
Types of standard md2 animations.
Definition IAnimatedMeshMD2.h:17
irr::scene::EMAT_CROUCH_STAND
@ EMAT_CROUCH_STAND
Definition IAnimatedMeshMD2.h:30
irr::scene::EMAT_WAVE
@ EMAT_WAVE
Definition IAnimatedMeshMD2.h:28
irr::scene::EMAT_PAIN_B
@ EMAT_PAIN_B
Definition IAnimatedMeshMD2.h:22
irr::scene::EMAT_CROUCH_DEATH
@ EMAT_CROUCH_DEATH
Definition IAnimatedMeshMD2.h:34
irr::scene::EMAT_ATTACK
@ EMAT_ATTACK
Definition IAnimatedMeshMD2.h:20
irr::scene::EMAT_STAND
@ EMAT_STAND
Definition IAnimatedMeshMD2.h:18
irr::scene::EMAT_FLIP
@ EMAT_FLIP
Definition IAnimatedMeshMD2.h:25
irr::scene::EMAT_CROUCH_WALK
@ EMAT_CROUCH_WALK
Definition IAnimatedMeshMD2.h:31
irr::scene::EMAT_CROUCH_PAIN
@ EMAT_CROUCH_PAIN
Definition IAnimatedMeshMD2.h:33
irr::scene::EMAT_PAIN_C
@ EMAT_PAIN_C
Definition IAnimatedMeshMD2.h:23
irr::scene::EMAT_COUNT
@ EMAT_COUNT
Not an animation, but amount of animation types.
Definition IAnimatedMeshMD2.h:41
irr::scene::EMAT_PAIN_A
@ EMAT_PAIN_A
Definition IAnimatedMeshMD2.h:21
irr::scene::EMAT_POINT
@ EMAT_POINT
Definition IAnimatedMeshMD2.h:29
irr::scene::EMAT_SALUTE
@ EMAT_SALUTE
Definition IAnimatedMeshMD2.h:26
irr::scene::EMAT_DEATH_FALLBACKSLOW
@ EMAT_DEATH_FALLBACKSLOW
Definition IAnimatedMeshMD2.h:37
irr::scene::EMAT_DEATH_FALLFORWARD
@ EMAT_DEATH_FALLFORWARD
Definition IAnimatedMeshMD2.h:36
irr::scene::EMAT_BOOM
@ EMAT_BOOM
Definition IAnimatedMeshMD2.h:38
irr::scene::EMAT_FALLBACK
@ EMAT_FALLBACK
Definition IAnimatedMeshMD2.h:27
irr::scene::EMAT_CROUCH_ATTACK
@ EMAT_CROUCH_ATTACK
Definition IAnimatedMeshMD2.h:32
irr::scene::EMAT_DEATH_FALLBACK
@ EMAT_DEATH_FALLBACK
Definition IAnimatedMeshMD2.h:35
irr::scene::EMAT_JUMP
@ EMAT_JUMP
Definition IAnimatedMeshMD2.h:24
irr::scene::EMAT_RUN
@ EMAT_RUN
Definition IAnimatedMeshMD2.h:19
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::c8
char c8
8 bit character variable.
Definition irrTypes.h:31
irr::s32
signed int s32
32 bit signed variable.
Definition irrTypes.h:66
- Irrlicht Engine Documentation © 2003-2012 by Nikolaus Gebhardt. Generated on for Irrlicht 3D Engine by Doxygen 1.15.0