![]() |
Castor3D 0.17.0
Multiplatform 3D engine
|
#include <MeshAnimationInstanceSubmesh.hpp>
Public Member Functions | |
C3D_API | MeshAnimationInstanceSubmesh (MeshAnimationInstanceSubmesh &&rhs)=default |
C3D_API MeshAnimationInstanceSubmesh & | operator= (MeshAnimationInstanceSubmesh &&rhs)=delete |
C3D_API | MeshAnimationInstanceSubmesh (MeshAnimationInstanceSubmesh const &rhs)=delete |
C3D_API MeshAnimationInstanceSubmesh & | operator= (MeshAnimationInstanceSubmesh const &rhs)=delete |
C3D_API | MeshAnimationInstanceSubmesh (MeshAnimationInstance &animationInstance, MeshAnimationSubmesh &animationObject) |
Constructor. | |
virtual C3D_API | ~MeshAnimationInstanceSubmesh ()=default |
Destructor. | |
C3D_API void | update (float factor, castor::Vector< float > const &prv, castor::Vector< float > const &cur, castor::BoundingBox const &prvbb, castor::BoundingBox const &curbb) |
Updates the object, given to animation buffers. | |
C3D_API void | clear () |
Moves the object back to initial state. | |
C3D_API Submesh const & | getSubmesh () const |
The submesh. | |
castor::Vector< float > | getWeights () const |
The current weights. | |
![]() | |
MeshAnimationInstance * | getOwner () const noexcept |
void | setOwner (MeshAnimationInstance &owner) noexcept |
Protected Attributes | |
MeshAnimationSubmesh & | m_animationObject |
castor::Vector< float > | m_cur |
Additional Inherited Members | |
![]() | |
OwnedBy (MeshAnimationInstance &owner) noexcept | |
Constructor. | |
|
default |
|
delete |
C3D_API castor3d::MeshAnimationInstanceSubmesh::MeshAnimationInstanceSubmesh | ( | MeshAnimationInstance & | animationInstance, |
MeshAnimationSubmesh & | animationObject ) |
Constructor.
[in] | animationInstance | The parent skeleton animation instance. |
[in] | animationObject | The animation object. |
|
virtualdefault |
Destructor.
C3D_API void castor3d::MeshAnimationInstanceSubmesh::clear | ( | ) |
Moves the object back to initial state.
|
inline |
The current weights.
References m_cur.
|
delete |
|
delete |
C3D_API void castor3d::MeshAnimationInstanceSubmesh::update | ( | float | factor, |
castor::Vector< float > const & | prv, | ||
castor::Vector< float > const & | cur, | ||
castor::BoundingBox const & | prvbb, | ||
castor::BoundingBox const & | curbb ) |
Updates the object, given to animation buffers.
[in] | factor | The percentage between prv and cur . |
[in] | prv | The previous animation buffer (factor 0). |
[in] | cur | The current animation buffer (factor 1). |
[in] | prvbb | The bounding box for the previous animation buffer. |
[in] | curbb | The bounding box for the current animation buffer. |
|
protected |
The animation object.
|
protected |
The current animation buffer.
Referenced by getWeights().