Irrlicht 3D Engine
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 
11 namespace irr
12 {
13 namespace scene
14 {
16 
20  class IAnimatedMesh : public IMesh
21  {
22  public:
23 
25 
28  virtual u32 getFrameCount() const = 0;
29 
31 
34  virtual f32 getAnimationSpeed() const = 0;
35 
37 
41  virtual void setAnimationSpeed(f32 fps) =0;
42 
44 
56  virtual IMesh* getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1) = 0;
57 
59 
65  {
66  return EAMT_UNKNOWN;
67  }
68  };
69 
70 } // end namespace scene
71 } // end namespace irr
72 
73 #endif
74 
float f32
32 bit floating point variable.
Definition: irrTypes.h:108
E_ANIMATED_MESH_TYPE
Possible types of meshes.
Definition: IMesh.h:19
virtual E_ANIMATED_MESH_TYPE getMeshType() const
Returns the type of the animated mesh.
Definition: IAnimatedMesh.h:64
Unknown animated mesh type.
Definition: IMesh.h:22
Everything in the Irrlicht Engine can be found in this namespace.
Definition: aabbox3d.h:12
Class which holds the geometry of an object.
Definition: IMesh.h:71
signed int s32
32 bit signed variable.
Definition: irrTypes.h:70
virtual f32 getAnimationSpeed() const =0
Gets the animation speed of the animated mesh.
unsigned int u32
32 bit unsigned variable.
Definition: irrTypes.h:62
virtual IMesh * getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1)=0
Returns the IMesh interface for a frame.
Interface for an animated mesh.
Definition: IAnimatedMesh.h:20
virtual void setAnimationSpeed(f32 fps)=0
Sets the animation speed of the animated mesh.
virtual u32 getFrameCount() const =0
Gets the frame count of the animated mesh.