Nirtcpp 2.1.0
Nirtcpp is a high-performance c++ graphics engine.
Loading...
Searching...
No Matches
IAnimatedMesh.hpp
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 nirtcpp/nirtcpp.hpp
4
5#ifndef NIRT_I_ANIMATED_MESH_HPP_INCLUDED
6#define NIRT_I_ANIMATED_MESH_HPP_INCLUDED
7
8#include <nirtcpp/core/engine/aabbox3d.hpp>
9#include <nirtcpp/core/engine/IMesh.hpp>
10
11namespace nirt
12{
13namespace 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
64 virtual E_ANIMATED_MESH_TYPE getMeshType() const override
65 {
66 return EAMT_UNKNOWN;
67 }
68 };
69
70} // end namespace scene
71} // end namespace nirt
72
73#endif
Interface for an animated mesh.
Definition IAnimatedMesh.hpp:21
virtual IMesh * getMesh(s32 frame, s32 detailLevel=255, s32 startFrameLoop=-1, s32 endFrameLoop=-1)=0
Returns the IMesh interface for a frame.
virtual f32 getAnimationSpeed() const =0
Gets the animation speed of the animated mesh.
virtual E_ANIMATED_MESH_TYPE getMeshType() const override
Returns the type of the animated mesh.
Definition IAnimatedMesh.hpp:64
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.
Class which holds the geometry of an object.
Definition IMesh.hpp:72
E_ANIMATED_MESH_TYPE
Possible types of meshes.
Definition IMesh.hpp:20
@ EAMT_UNKNOWN
Unknown animated mesh type.
Definition IMesh.hpp:22
As of Nirtcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int s32
32 bit signed variable.
Definition irrTypes.hpp:72
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110

Nirtcpp    @cppfx.xyz

Esvcpp    esv::print