Loading...
Searching...
No Matches
IAnimatedMesh.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_H_INCLUDED__
#define __I_ANIMATED_MESH_H_INCLUDED__
#include "aabbox3d.h"
#include "IMesh.h"
namespace irr
{
namespace scene
{
enum E_ANIMATED_MESH_TYPE
{
EAMT_UNKNOWN = 0,
EAMT_MD2,
EAMT_MD3,
EAMT_OBJ,
EAMT_BSP,
EAMT_3DS,
EAMT_MY3D,
EAMT_LMTS,
EAMT_CSM,
EAMT_OCT,
EAMT_MDL_HALFLIFE,
EAMT_SKINNED
};
class IAnimatedMesh : public IMesh
{
public:
virtual u32 getFrameCount() const = 0;
virtual f32 getAnimationSpeed() const = 0;
virtual void setAnimationSpeed(f32 fps) =0;
virtual IMesh* getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1) = 0;
virtual E_ANIMATED_MESH_TYPE getMeshType() const
{
return EAMT_UNKNOWN;
}
};
} // end namespace scene
} // end namespace irr
#endif
IMesh.h
aabbox3d.h
irr::scene::IAnimatedMesh
Interface for an animated mesh.
Definition IAnimatedMesh.h:63
irr::scene::IAnimatedMesh::getMesh
virtual IMesh * getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1)=0
Returns the IMesh interface for a frame.
irr::scene::IAnimatedMesh::getFrameCount
virtual u32 getFrameCount() const =0
Gets the frame count of the animated mesh.
irr::scene::IAnimatedMesh::setAnimationSpeed
virtual void setAnimationSpeed(f32 fps)=0
Sets the animation speed of the animated mesh.
irr::scene::IAnimatedMesh::getMeshType
virtual E_ANIMATED_MESH_TYPE getMeshType() const
Returns the type of the animated mesh.
Definition IAnimatedMesh.h:105
irr::scene::IAnimatedMesh::getAnimationSpeed
virtual f32 getAnimationSpeed() const =0
Gets the animation speed of the animated mesh.
irr::scene::IMesh
Class which holds the geometry of an object.
Definition IMesh.h:24
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::E_ANIMATED_MESH_TYPE
E_ANIMATED_MESH_TYPE
Possible types of (animated) meshes.
Definition IAnimatedMesh.h:17
irr::scene::EAMT_3DS
@ EAMT_3DS
3D Studio .3ds file
Definition IAnimatedMesh.h:34
irr::scene::EAMT_CSM
@ EAMT_CSM
Cartography Shop .csm file. This loader was created by Saurav Mohapatra.
Definition IAnimatedMesh.h:43
irr::scene::EAMT_BSP
@ EAMT_BSP
Quake 3 .bsp static Map.
Definition IAnimatedMesh.h:31
irr::scene::EAMT_MD2
@ EAMT_MD2
Quake 2 MD2 model file.
Definition IAnimatedMesh.h:22
irr::scene::EAMT_MD3
@ EAMT_MD3
Quake 3 MD3 model file.
Definition IAnimatedMesh.h:25
irr::scene::EAMT_MY3D
@ EAMT_MY3D
My3D Mesh, the file format by Zhuck Dimitry.
Definition IAnimatedMesh.h:37
irr::scene::EAMT_SKINNED
@ EAMT_SKINNED
generic skinned mesh
Definition IAnimatedMesh.h:54
irr::scene::EAMT_UNKNOWN
@ EAMT_UNKNOWN
Unknown animated mesh type.
Definition IAnimatedMesh.h:19
irr::scene::EAMT_LMTS
@ EAMT_LMTS
Pulsar LMTools .lmts file. This Irrlicht loader was written by Jonas Petersen.
Definition IAnimatedMesh.h:40
irr::scene::EAMT_OBJ
@ EAMT_OBJ
Maya .obj static model.
Definition IAnimatedMesh.h:28
irr::scene::EAMT_MDL_HALFLIFE
@ EAMT_MDL_HALFLIFE
Halflife MDL model file.
Definition IAnimatedMesh.h:51
irr::scene::EAMT_OCT
@ EAMT_OCT
.oct file for Paul Nette's FSRad or from Murphy McCauley's Blender .oct exporter.
Definition IAnimatedMesh.h:48
irr
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
irr::f32
float f32
32 bit floating point variable.
Definition irrTypes.h:104
irr::u32
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
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