Duckcpp 2.1.0
Duckcpp 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 duckcpp/duckcpp.hpp
4
5#ifndef DCPP_I_ANIMATED_MESH_HPP_INCLUDED
6#define DCPP_I_ANIMATED_MESH_HPP_INCLUDED
7
8#include <duckcpp/core/engine/aabbox3d.hpp>
9#include <duckcpp/core/engine/IMesh.hpp>
10
11namespace dcpp
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(i32 frame, i32 detailLevel=255, i32 startFrameLoop=-1, i32 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 dcpp
72
73#endif
Interface for an animated mesh.
Definition IAnimatedMesh.hpp:21
virtual u32 getFrameCount() const =0
Gets the frame count of the animated mesh.
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 IMesh * getMesh(i32 frame, i32 detailLevel=255, i32 startFrameLoop=-1, i32 endFrameLoop=-1)=0
Returns the IMesh interface for a frame.
virtual void setAnimationSpeed(f32 fps)=0
Sets the animation speed 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 Duckcpp 1.6, position2d is a synonym for vector2d.
Definition vector3d.hpp:11
signed int i32
32 bit signed variable.
Definition irrTypes.hpp:72
float f32
32 bit floating point variable.
Definition irrTypes.hpp:110
unsigned int u32
32 bit unsigned variable.
Definition irrTypes.hpp:64

Duckcpp    @cppfx.xyz