![]() |
Castor3D 0.12.0
Multiplatform 3D engine
|
#include <SkeletonAnimationInstance.hpp>
Public Member Functions | |
C3D_API | SkeletonAnimationInstance (AnimatedSkeleton &object, SkeletonAnimation &animation) |
Constructor. More... | |
C3D_API SkeletonAnimationInstanceObjectSPtr | getObject (Bone const &bone) const |
Retrieves an animated bone. More... | |
C3D_API SkeletonAnimationInstanceObjectSPtr | getObject (castor::String const &name) const |
Retrieves an animated node. More... | |
C3D_API SkeletonAnimationInstanceObjectSPtr | getObject (SkeletonAnimationObjectType type, castor::String const &name) const |
Retrieves an animated object. More... | |
auto | getObjectsCount () const |
auto | begin () |
auto | begin () const |
auto | end () |
auto | end () const |
C3D_API | SkeletonAnimationInstance (SkeletonAnimationInstance &&rhs)=default |
C3D_API SkeletonAnimationInstance & | operator= (SkeletonAnimationInstance &&rhs)=delete |
C3D_API | SkeletonAnimationInstance (SkeletonAnimationInstance const &rhs)=delete |
C3D_API SkeletonAnimationInstance & | operator= (SkeletonAnimationInstance const &rhs)=delete |
![]() | |
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 | |
SkeletonAnimationInstanceObjectPtrArray | m_toMove |
SkeletonAnimationInstanceKeyFrameArray | m_keyFrames |
SkeletonAnimationInstanceKeyFrameArray::iterator | m_curr |
![]() | |
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 } |
|
default |
name Copy / Move.
|
delete |
C3D_API castor3d::SkeletonAnimationInstance::SkeletonAnimationInstance | ( | AnimatedSkeleton & | object, |
SkeletonAnimation & | animation | ||
) |
Constructor.
[in] | object | The parent AnimatedSkeleton. |
[in] | animation | The animation. |
|
inline |
References m_toMove.
|
inline |
References m_toMove.
|
inline |
References m_toMove.
|
inline |
References m_toMove.
C3D_API SkeletonAnimationInstanceObjectSPtr castor3d::SkeletonAnimationInstance::getObject | ( | Bone const & | bone | ) | const |
Retrieves an animated bone.
[in] | bone | The bone. |
C3D_API SkeletonAnimationInstanceObjectSPtr castor3d::SkeletonAnimationInstance::getObject | ( | castor::String const & | name | ) | const |
Retrieves an animated node.
[in] | name | The node name. |
C3D_API SkeletonAnimationInstanceObjectSPtr castor3d::SkeletonAnimationInstance::getObject | ( | SkeletonAnimationObjectType | type, |
castor::String const & | name | ||
) | const |
Retrieves an animated object.
[in] | type | The object type. |
[in] | name | The object name. |
|
inline |
References m_toMove.
|
delete |
|
delete |
|
protected |
Iterator to the current keyframe (when playing the animation).
|
protected |
The instance keyframes.
|
protected |
The moving objects.
Referenced by begin(), end(), and getObjectsCount().