![]() |
Castor3D 0.12.0
Multiplatform 3D engine
|
#include <AnimatedMesh.hpp>


Public Member Functions | |
| C3D_API | AnimatedMesh (castor::String const &name, Mesh &mesh, Geometry &geometry) |
| Constructor. More... | |
| C3D_API void | update (castor::Milliseconds const &elapsed) override |
| Updates the animations of the object, given the time since the last frame. More... | |
| bool | isPlayingAnimation () const override |
| Mesh & | getMesh () const |
| Geometry & | getGeometry () const |
| uint32_t | getId () const |
| void | setId (uint32_t id) |
| MeshAnimationInstance & | getPlayingAnimation () const |
| C3D_API | AnimatedMesh (AnimatedMesh &&rhs)=default |
| C3D_API AnimatedMesh & | operator= (AnimatedMesh &&rhs)=delete |
| C3D_API | AnimatedMesh (AnimatedMesh const &rhs)=delete |
| C3D_API AnimatedMesh & | operator= (AnimatedMesh const &rhs)=delete |
Public Member Functions inherited from castor3d::AnimatedObject | |
| C3D_API | AnimatedObject (AnimationType kind, castor::String const &name) |
| Constructor. More... | |
| virtual C3D_API | ~AnimatedObject ()=default |
| Destructor. More... | |
| C3D_API void | addAnimation (castor::String const &name) |
| adds the animation to the list More... | |
| C3D_API void | startAnimation (castor::String const &name) |
| Starts the animation identified by the given name. More... | |
| C3D_API void | stopAnimation (castor::String const &name) |
| Stops the animation identified by the given name. More... | |
| C3D_API void | pauseAnimation (castor::String const &name) |
| Pauses the animation identified by the given name. More... | |
| C3D_API void | startAllAnimations () |
| Starts all animations. More... | |
| C3D_API void | stopAllAnimations () |
| Stops all animations. More... | |
| C3D_API void | pauseAllAnimations () |
| Pauses all animations. More... | |
| C3D_API AnimationInstance & | getAnimation (castor::String const &name) |
| Retrieves an animation. More... | |
| virtual C3D_API void | update (castor::Milliseconds const &elapsed)=0 |
| Updates the animations of the object, given the time since the last frame. More... | |
| virtual C3D_API bool | isPlayingAnimation () const =0 |
| C3D_API | AnimatedObject (AnimatedObject &&rhs)=default |
| C3D_API AnimatedObject & | operator= (AnimatedObject &&rhs)=default |
| C3D_API | AnimatedObject (AnimatedObject const &rhs)=delete |
| C3D_API AnimatedObject & | operator= (AnimatedObject const &rhs)=delete |
| bool | hasAnimation (castor::String const &name) |
| AnimationInstancePtrStrMap const & | getAnimations () const |
| AnimationType | getKind () const |
Protected Attributes | |
| Mesh & | m_mesh |
| Geometry & | m_geometry |
| MeshAnimationInstanceRPtr | m_playingAnimation { nullptr } |
| uint32_t | m_id {} |
Protected Attributes inherited from castor3d::AnimatedObject | |
| AnimationInstancePtrStrMap | m_animations |
|
default |
name Copy / Move.
|
delete |
| C3D_API castor3d::AnimatedMesh::AnimatedMesh | ( | castor::String const & | name, |
| Mesh & | mesh, | ||
| Geometry & | geometry | ||
| ) |
Constructor.
| [in] | name | The object name. |
| [in] | mesh | The mesh. |
| [in] | geometry | The geometry instantiating the mesh. |
|
inline |
References m_geometry.
|
inline |
References m_id.
|
inline |
References m_playingAnimation.
|
inlineoverridevirtual |
true if the object is playing an animation. Implements castor3d::AnimatedObject.
References m_playingAnimation.
|
delete |
|
delete |
|
inline |
References m_id.
|
overridevirtual |
Updates the animations of the object, given the time since the last frame.
| [in] | elapsed | Time elapsed since the last frame |
Implements castor3d::AnimatedObject.
|
protected |
Referenced by getGeometry().
|
protected |
Referenced by getPlayingAnimation(), and isPlayingAnimation().