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


Public Member Functions | |
| C3D_API | MeshAnimationInstance (AnimatedMesh &object, MeshAnimation &animation) |
| Constructor. More... | |
| C3D_API MeshAnimationInstanceSubmesh const * | getAnimationSubmesh (uint32_t index) const |
| MeshAnimation const & | getMeshAnimation () const |
| AnimatedMesh & | getAnimatedMesh () |
| float | getRatio () const |
| C3D_API | MeshAnimationInstance (MeshAnimationInstance &&rhs)=default |
| C3D_API MeshAnimationInstance & | operator= (MeshAnimationInstance &&rhs)=delete |
| C3D_API | MeshAnimationInstance (MeshAnimationInstance const &rhs)=delete |
| C3D_API MeshAnimationInstance & | operator= (MeshAnimationInstance const &rhs)=delete |
Public Member Functions inherited from castor3d::AnimationInstance | |
| C3D_API | AnimationInstance (AnimatedObject &object, Animation &animation) |
| Constructor. More... | |
| virtual C3D_API | ~AnimationInstance ()=default |
| Destructor. More... | |
| C3D_API void | update (castor::Milliseconds const &elapsed) |
| Updates the animation, updates the key frame at the good time index. More... | |
| C3D_API void | play () |
| Plays the animation. More... | |
| C3D_API void | pause () |
| Pauses the animation. More... | |
| C3D_API void | stop () |
| Stops the animation. More... | |
| AnimationState | getState () const |
| float | getScale () const |
| void | setScale (float value) |
| Sets the animation time scale. More... | |
| castor::Milliseconds | getStartingPoint () const |
| void | setStartingPoint (castor::Milliseconds value) |
| Sets the animation stopping point. More... | |
| castor::Milliseconds | getStoppingPoint () const |
| void | setStoppingPoint (castor::Milliseconds value) |
| Sets the animation stopping point. More... | |
| bool | isLooped () const |
| void | setLooped (bool value) |
| Sets the animation loop status. More... | |
| Animation const & | getAnimation () const |
Protected Attributes | |
| AnimatedMesh & | m_animatedMesh |
| MeshAnimation const & | m_meshAnimation |
| MeshAnimationInstanceSubmeshMap | m_submeshes |
| AnimationKeyFrameArray::iterator | m_prev |
| AnimationKeyFrameArray::iterator | m_curr |
| float | m_ratio { 0.0f } |
Protected Attributes inherited from castor3d::AnimationInstance | |
| Animation const & | m_animation |
| float | m_scale { 1.0f } |
| bool | m_looped { false } |
| castor::Milliseconds | m_startingPoint { 0 } |
| castor::Milliseconds | m_stoppingPoint { 0 } |
| castor::Milliseconds | m_currentTime { 0 } |
| AnimationState | m_state { AnimationState::eStopped } |
Friends | |
| class | BinaryWriter< MeshAnimation > |
| class | BinaryParser< MeshAnimation > |
|
default |
name Copy / Move.
|
delete |
| C3D_API castor3d::MeshAnimationInstance::MeshAnimationInstance | ( | AnimatedMesh & | object, |
| MeshAnimation & | animation | ||
| ) |
Constructor.
| [in] | object | The parent AnimatedMesh. |
| [in] | animation | The animation. |
|
inline |
References m_animatedMesh.
| C3D_API MeshAnimationInstanceSubmesh const * castor3d::MeshAnimationInstance::getAnimationSubmesh | ( | uint32_t | index | ) | const |
|
inline |
References m_meshAnimation.
|
inline |
References m_ratio.
|
delete |
|
delete |
|
friend |
|
friend |
|
protected |
Referenced by getAnimatedMesh().
|
protected |
|
protected |
Referenced by getMeshAnimation().
|
protected |
|
protected |
Referenced by getRatio().
|
protected |