|
Castor3D
..
|
Represents the animated objects. More...
Inheritance diagram for Castor3D::AnimatedObject:
Collaboration diagram for Castor3D::AnimatedObject:Public Member Functions | |
| C3D_API | AnimatedObject (Castor::String const &p_name) |
| Constructor. More... | |
| C3D_API | ~AnimatedObject () |
| Destructor. More... | |
| C3D_API void | Update (real p_tslf) |
| Updates the animations of the object, given the time since the last frame. More... | |
| C3D_API void | FillShader (Matrix4x4rFrameVariable &p_variable) |
| Fills a shader variable with this object's skeleton transforms. More... | |
| C3D_API void | StartAnimation (Castor::String const &p_name) |
| Starts the animation identified by the given name. More... | |
| C3D_API void | StopAnimation (Castor::String const &p_name) |
| Stops the animation identified by the given name. More... | |
| C3D_API void | PauseAnimation (Castor::String const &p_name) |
| Pauses the animation identified by the given name. More... | |
| C3D_API void | StartAllAnimations () |
| Starts all animations. More... | |
| C3D_API void | StopAllAnimations () |
| Stops all animations. More... | |
| C3D_API void | PauseAllAnimations () |
| Pauses all animations. More... | |
| C3D_API AnimationSPtr | GetAnimation (Castor::String const &p_name) |
| Retrieves an animation. More... | |
| C3D_API void | SetGeometry (GeometrySPtr p_geometry) |
| Defines the geometry. More... | |
| C3D_API void | SetMesh (MeshSPtr p_mesh) |
| Defines the mesh. More... | |
| C3D_API void | SetSkeleton (SkeletonSPtr p_skeleton) |
| Defines the skeleton. More... | |
| GeometrySPtr | GetGeometry () const |
| Retrieves the geometry. More... | |
| MeshSPtr | GetMesh () const |
| Retrieves the mesh. More... | |
| SkeletonSPtr | GetSkeleton () const |
| Retrieves the skeleton. More... | |
| bool | IsPlayingAnimation () const |
Protected Attributes | |
| AnimationPtrStrMap | m_animations |
| All animations. More... | |
| AnimationPtrArray | m_playingAnimations |
| Currently playing animations. More... | |
| GeometryWPtr | m_geometry |
| The geometry affected by the animations. More... | |
| MeshWPtr | m_mesh |
| The mesh affected by the animations. More... | |
| SkeletonWPtr | m_skeleton |
| The skeleton affected by the animations. More... | |
Represents the animated objects.
| C3D_API Castor3D::AnimatedObject::AnimatedObject | ( | Castor::String const & | p_name | ) |
Constructor.
| [in] | p_name | The object name |
| C3D_API Castor3D::AnimatedObject::~AnimatedObject | ( | ) |
Destructor.
| C3D_API void Castor3D::AnimatedObject::FillShader | ( | Matrix4x4rFrameVariable & | p_variable | ) |
Fills a shader variable with this object's skeleton transforms.
| [out] | p_variable | Receives the transforms. |
| C3D_API AnimationSPtr Castor3D::AnimatedObject::GetAnimation | ( | Castor::String const & | p_name | ) |
Retrieves an animation.
| [in] | p_name | The animation name |
|
inline |
|
inline |
|
inline |
|
inline |
true if the object is playing an animation. References m_playingAnimations.
| C3D_API void Castor3D::AnimatedObject::PauseAllAnimations | ( | ) |
Pauses all animations.
| C3D_API void Castor3D::AnimatedObject::PauseAnimation | ( | Castor::String const & | p_name | ) |
Pauses the animation identified by the given name.
| [in] | p_name | The name of the animation |
| C3D_API void Castor3D::AnimatedObject::SetGeometry | ( | GeometrySPtr | p_geometry | ) |
Defines the geometry.
| [in] | p_geometry | The geometry |
| C3D_API void Castor3D::AnimatedObject::SetMesh | ( | MeshSPtr | p_mesh | ) |
Defines the mesh.
| [in] | p_mesh | The mesh |
| C3D_API void Castor3D::AnimatedObject::SetSkeleton | ( | SkeletonSPtr | p_skeleton | ) |
Defines the skeleton.
| [in] | p_skeleton | The skeleton |
| C3D_API void Castor3D::AnimatedObject::StartAllAnimations | ( | ) |
Starts all animations.
| C3D_API void Castor3D::AnimatedObject::StartAnimation | ( | Castor::String const & | p_name | ) |
Starts the animation identified by the given name.
| [in] | p_name | The name of the animation |
| C3D_API void Castor3D::AnimatedObject::StopAllAnimations | ( | ) |
Stops all animations.
| C3D_API void Castor3D::AnimatedObject::StopAnimation | ( | Castor::String const & | p_name | ) |
Stops the animation identified by the given name.
| [in] | p_name | The name of the animation |
| C3D_API void Castor3D::AnimatedObject::Update | ( | real | p_tslf | ) |
Updates the animations of the object, given the time since the last frame.
| [in] | p_tslf | Time elapsed since the last frame |
|
protected |
All animations.
|
protected |
The geometry affected by the animations.
Referenced by GetGeometry().
|
protected |
The mesh affected by the animations.
Referenced by GetMesh().
|
protected |
Currently playing animations.
Referenced by IsPlayingAnimation().
|
protected |
The skeleton affected by the animations.
Referenced by GetSkeleton().
1.8.15