Saga3D API Documentation  1.0-RC4
IAnimatedMesh.h
Go to the documentation of this file.
1 #ifndef __I_ANIMATED_MESH_H_INCLUDED__
2 #define __I_ANIMATED_MESH_H_INCLUDED__
3 
4 #include "aabbox3d.h"
5 #include "IMesh.h"
6 
7 namespace saga
8 {
9 namespace scene
10 {
12 
16  class IAnimatedMesh : public IMesh
17  {
18  public:
20 
23  virtual std::uint32_t getFrameCount() const = 0;
24 
26 
29  virtual float getAnimationSpeed() const = 0;
30 
32 
36  virtual void setAnimationSpeed(float fps) = 0;
37 
39 
40  virtual void setAnimation(const uint32_t index) = 0;
41 
43 
44  virtual void onAnimate(const float time) = 0;
45 
46  };
47 
48 } // namespace scene
49 } // namespace saga
50 
51 #endif
52 
saga::scene::IAnimatedMesh::getFrameCount
virtual std::uint32_t getFrameCount() const =0
Gets the frame count of the animated mesh.
saga::scene::IAnimatedMesh::setAnimationSpeed
virtual void setAnimationSpeed(float fps)=0
Sets the animation speed of the animated mesh.
saga::scene::IMesh
Class which holds the geometry of an object.
Definition: IMesh.h:27
aabbox3d.h
saga::scene::IAnimatedMesh::onAnimate
virtual void onAnimate(const float time)=0
Animate the mesh.
saga::scene::IAnimatedMesh::setAnimation
virtual void setAnimation(const uint32_t index)=0
Set active animation.
saga::scene::IAnimatedMesh::getAnimationSpeed
virtual float getAnimationSpeed() const =0
Gets the animation speed of the animated mesh.
saga::scene::IAnimatedMesh
Interface for an animated mesh.
Definition: IAnimatedMesh.h:16
IMesh.h
saga
Definition: aabbox3d.h:11