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


Public Member Functions | |
| virtual C3D_API | ~Animable () noexcept=default |
| C3D_API void | cleanupAnimations () |
| Empties the animations map. | |
| virtual C3D_API bool | hasAnimation () const noexcept |
| C3D_API bool | hasAnimation (castor::String const &name) const |
| C3D_API Animation const & | getAnimation (castor::String const &name) const |
| Retrieves an animation. | |
| C3D_API Animation & | getAnimation (castor::String const &name) |
| Retrieves an animation. | |
| C3D_API void | addAnimation (AnimationPtr animation) |
| Adds an animation. | |
| AnimationsMap const & | getAnimations () const |
Public Member Functions inherited from castor::OwnedBy< Engine > | |
| Engine * | getOwner () const noexcept |
| void | setOwner (Engine &owner) noexcept |
Protected Types | |
| using | AnimationPtr = castor::UniquePtr< Animation > |
| using | AnimationsMap = castor::StringMap< AnimationPtr > |
Protected Member Functions | |
| C3D_API void | doRemoveAnimation (castor::String const &name) |
| Removes an animation. | |
| template<typename AnimationType > | |
| AnimationType & | doGetAnimation (castor::String const &name) |
| Retrieves an animation. | |
| template<typename AnimationType > | |
| AnimationType const & | doGetAnimation (castor::String const &name) const |
| Retrieves an animation. | |
Construction / Destruction. | |
| C3D_API | Animable (Engine &owner) |
| C3D_API | Animable (Animable &&rhs) noexcept=default |
| C3D_API Animable & | operator= (Animable &&rhs) noexcept=delete |
| C3D_API | Animable (Animable const &rhs)=delete |
| C3D_API Animable & | operator= (Animable const &rhs)=delete |
Protected Member Functions inherited from castor::OwnedBy< Engine > | |
| OwnedBy (Engine &owner) noexcept | |
| Constructor. | |
Protected Attributes | |
| AnimationsMap | m_animations |
|
protected |
|
protected |
|
virtualdefaultnoexcept |
| C3D_API void castor3d::Animable::addAnimation | ( | AnimationPtr | animation | ) |
Adds an animation.
| [in] | animation | The animation. |
| C3D_API void castor3d::Animable::cleanupAnimations | ( | ) |
Empties the animations map.
|
inlineprotected |
Retrieves an animation.
| [in] | name | The animation name |
References getAnimation().

|
inlineprotected |
Retrieves an animation.
| [in] | name | The animation name |
References getAnimation().

|
protected |
Removes an animation.
| [in] | name | The animation name |
| C3D_API Animation & castor3d::Animable::getAnimation | ( | castor::String const & | name | ) |
Retrieves an animation.
| [in] | name | The animation name |
| C3D_API Animation const & castor3d::Animable::getAnimation | ( | castor::String const & | name | ) | const |
Retrieves an animation.
| [in] | name | The animation name |
Referenced by doGetAnimation(), and doGetAnimation().

|
inline |
References m_animations.
|
virtualnoexcept |
true if the object has an animation. Reimplemented in castor3d::TextureUnit.
| C3D_API bool castor3d::Animable::hasAnimation | ( | castor::String const & | name | ) | const |
| [in] | name | The animation name |
true it the object has an animation with given name.
|
protected |
All animations.
Referenced by getAnimations().