#include <AnimationInstance.hpp>
◆ AnimationInstance()
◆ ~AnimationInstance()
virtual C3D_API castor3d::AnimationInstance::~AnimationInstance |
( |
| ) |
|
|
virtualdefault |
◆ getAnimation()
Animation const & castor3d::AnimationInstance::getAnimation |
( |
| ) |
const |
|
inline |
◆ getScale()
float castor3d::AnimationInstance::getScale |
( |
| ) |
const |
|
inline |
- Returns
- The animation time scale.
References m_scale.
◆ getStartingPoint()
castor::Milliseconds castor3d::AnimationInstance::getStartingPoint |
( |
| ) |
const |
|
inline |
◆ getState()
- Returns
- The animation state.
References m_state.
◆ getStoppingPoint()
castor::Milliseconds castor3d::AnimationInstance::getStoppingPoint |
( |
| ) |
const |
|
inline |
◆ isLooped()
bool castor3d::AnimationInstance::isLooped |
( |
| ) |
const |
|
inline |
- Returns
- The animation loop status.
References m_looped.
◆ pause()
C3D_API void castor3d::AnimationInstance::pause |
( |
| ) |
|
◆ play()
C3D_API void castor3d::AnimationInstance::play |
( |
| ) |
|
◆ setLooped()
void castor3d::AnimationInstance::setLooped |
( |
bool |
value | ) |
|
|
inline |
Sets the animation loop status.
- Parameters
-
References m_looped.
◆ setScale()
void castor3d::AnimationInstance::setScale |
( |
float |
value | ) |
|
|
inline |
Sets the animation time scale.
- Parameters
-
References m_scale.
◆ setStartingPoint()
void castor3d::AnimationInstance::setStartingPoint |
( |
castor::Milliseconds |
value | ) |
|
|
inline |
◆ setStoppingPoint()
void castor3d::AnimationInstance::setStoppingPoint |
( |
castor::Milliseconds |
value | ) |
|
|
inline |
◆ stop()
C3D_API void castor3d::AnimationInstance::stop |
( |
| ) |
|
◆ update()
C3D_API void castor3d::AnimationInstance::update |
( |
castor::Milliseconds const & |
elapsed | ) |
|
Updates the animation, updates the key frame at the good time index.
- Parameters
-
[in] | elapsed | The time since the last frame. |
◆ m_animation
Animation const& castor3d::AnimationInstance::m_animation |
|
protected |
◆ m_currentTime
castor::Milliseconds castor3d::AnimationInstance::m_currentTime { 0 } |
|
protected |
◆ m_looped
bool castor3d::AnimationInstance::m_looped { false } |
|
protected |
◆ m_scale
float castor3d::AnimationInstance::m_scale { 1.0f } |
|
protected |
◆ m_startingPoint
castor::Milliseconds castor3d::AnimationInstance::m_startingPoint { 0 } |
|
protected |
◆ m_state
The current state of the animation.
Referenced by getState().
◆ m_stoppingPoint
castor::Milliseconds castor3d::AnimationInstance::m_stoppingPoint { 0 } |
|
protected |
The documentation for this class was generated from the following file: