Irrlicht 3D Engine
 
Loading...
Searching...
No Matches
IAnimatedMesh.h
Go to the documentation of this file.
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_H_INCLUDED__
6#define __I_ANIMATED_MESH_H_INCLUDED__
7
8#include "aabbox3d.h"
9#include "IMesh.h"
10
11namespace irr
12{
13namespace scene
14{
56
58
62 class IAnimatedMesh : public IMesh
63 {
64 public:
65
67
69 virtual u32 getFrameCount() const = 0;
70
72
75 virtual f32 getAnimationSpeed() const = 0;
76
78
82 virtual void setAnimationSpeed(f32 fps) =0;
83
85
97 virtual IMesh* getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1) = 0;
98
100
106 {
107 return EAMT_UNKNOWN;
108 }
109 };
110
111} // end namespace scene
112} // end namespace irr
113
114#endif
115
Interface for an animated mesh.
virtual IMesh * getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1)=0
Returns the IMesh interface for a frame.
virtual u32 getFrameCount() const =0
Gets the frame count of the animated mesh.
virtual void setAnimationSpeed(f32 fps)=0
Sets the animation speed of the animated mesh.
virtual E_ANIMATED_MESH_TYPE getMeshType() const
Returns the type of the animated mesh.
virtual f32 getAnimationSpeed() const =0
Gets the animation speed of the animated mesh.
Class which holds the geometry of an object.
Definition IMesh.h:24
E_ANIMATED_MESH_TYPE
Possible types of (animated) meshes.
@ EAMT_3DS
3D Studio .3ds file
@ EAMT_CSM
Cartography Shop .csm file. This loader was created by Saurav Mohapatra.
@ EAMT_BSP
Quake 3 .bsp static Map.
@ EAMT_MD2
Quake 2 MD2 model file.
@ EAMT_MD3
Quake 3 MD3 model file.
@ EAMT_MY3D
My3D Mesh, the file format by Zhuck Dimitry.
@ EAMT_SKINNED
generic skinned mesh
@ EAMT_UNKNOWN
Unknown animated mesh type.
@ EAMT_LMTS
Pulsar LMTools .lmts file. This Irrlicht loader was written by Jonas Petersen.
@ EAMT_OBJ
Maya .obj static model.
@ EAMT_MDL_HALFLIFE
Halflife MDL model file.
@ EAMT_OCT
.oct file for Paul Nette's FSRad or from Murphy McCauley's Blender .oct exporter.
Everything in the Irrlicht Engine can be found in this namespace.
Definition aabbox3d.h:13
float f32
32 bit floating point variable.
Definition irrTypes.h:104
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.h:58
signed int s32
32 bit signed variable.
Definition irrTypes.h:66