arsa  2.7
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
Unknown animated mesh type.
Definition: IMesh.h:22
virtual E_ANIMATED_MESH_TYPE getMeshType() const _IRR_OVERRIDE_
Returns the type of the animated mesh.
Definition: IAnimatedMesh.h:64
Everything in the Irrlicht Engine can be found in this namespace.
Definition: CARSADPad.h:6
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
#define _IRR_OVERRIDE_
Defines an override macro, to protect virtual functions from typos and other mismatches.
Definition: irrTypes.h:216
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
#define const
Definition: zconf.h:217
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.