#include <Animation.hpp>
|
| OwnedBy (Engine &owner) noexcept |
| Constructor.
|
|
◆ Animation() [1/4]
◆ Animation() [2/4]
◆ ~Animation()
virtual C3D_API castor3d::Animation::~Animation |
( |
| ) |
|
|
virtualdefaultnoexcept |
◆ Animation() [3/4]
Constructor.
- Parameters
-
[in] | handler | The parent handler. |
[in] | type | The type of the animation. |
[in] | animable | The parent animable object. |
[in] | name | The name of the animation. |
◆ Animation() [4/4]
Constructor.
- Parameters
-
[in] | handler | The parent handler. |
[in] | type | The type of the animation. |
[in] | name | The name of the animation. |
◆ addKeyFrame()
C3D_API void castor3d::Animation::addKeyFrame |
( |
AnimationKeyFrameUPtr | keyFrame | ) |
|
Adds a keyframe to the animation.
- Parameters
-
[in] | keyFrame | The keyframe. |
◆ begin() [1/2]
AnimationKeyFrameArray::iterator castor3d::Animation::begin |
( |
| ) |
|
|
inline |
- Returns
- The beginning of the key frames.
References m_keyframes.
◆ begin() [2/2]
AnimationKeyFrameArray::const_iterator castor3d::Animation::begin |
( |
| ) |
const |
|
inline |
- Returns
- The beginning of the key frames.
References m_keyframes.
◆ cloneInto()
Clones this object into the given one.
- Parameters
-
[in,out] | output | Receives this object's data. |
◆ end() [1/2]
AnimationKeyFrameArray::iterator castor3d::Animation::end |
( |
| ) |
|
|
inline |
- Returns
- The end of the key frames.
References m_keyframes.
◆ end() [2/2]
AnimationKeyFrameArray::const_iterator castor3d::Animation::end |
( |
| ) |
const |
|
inline |
- Returns
- The end of the key frames.
References m_keyframes.
◆ find()
Finds a keyframe given a time index.
- Parameters
-
◆ findKeyFrame()
C3D_API void castor3d::Animation::findKeyFrame |
( |
castor::Milliseconds const & | time, |
|
|
AnimationKeyFrameArray::iterator & | prv, |
|
|
AnimationKeyFrameArray::iterator & | cur ) const |
Finds a keyframe given a time index.
- Parameters
-
[in] | time | The time index. |
[in,out] | prv | The previous keyframe, receives the new previous keyframe, if there is a change. |
[in,out] | cur | Receives the current keyframe, receives the new current keyframe, if there is a change. |
◆ getAnimable()
Animable * castor3d::Animation::getAnimable |
( |
| ) |
const |
|
inline |
◆ getLength()
- Returns
- The animation length.
References m_length.
◆ getType()
- Returns
- The animation type.
References m_type.
◆ isEmpty()
bool castor3d::Animation::isEmpty |
( |
| ) |
const |
|
inline |
- Returns
true
if the key frames list is empty.
References m_keyframes.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ size()
size_t castor3d::Animation::size |
( |
| ) |
const |
|
inline |
◆ updateLength()
C3D_API void castor3d::Animation::updateLength |
( |
| ) |
|
Updates the animation length.
◆ BinaryParser< Animation >
◆ BinaryWriter< Animation >
◆ m_animable
Animable* castor3d::Animation::m_animable {} |
|
protected |
◆ m_keyframes
AnimationKeyFrameArray castor3d::Animation::m_keyframes |
|
protected |
◆ m_length
◆ m_type
The documentation for this class was generated from the following file: