Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Protected Attributes | List of all members
castor3d::MeshAnimationInstanceSubmesh Class Reference

#include <MeshAnimationInstanceSubmesh.hpp>

Inheritance diagram for castor3d::MeshAnimationInstanceSubmesh:
Inheritance graph
[legend]
Collaboration diagram for castor3d::MeshAnimationInstanceSubmesh:
Collaboration graph
[legend]

Public Member Functions

C3D_API MeshAnimationInstanceSubmesh (MeshAnimationInstanceSubmesh &&rhs)=default
 
C3D_API MeshAnimationInstanceSubmeshoperator= (MeshAnimationInstanceSubmesh &&rhs)=delete
 
C3D_API MeshAnimationInstanceSubmesh (MeshAnimationInstanceSubmesh const &rhs)=delete
 
C3D_API MeshAnimationInstanceSubmeshoperator= (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.
 
- Public Member Functions inherited from castor::OwnedBy< MeshAnimationInstance >
MeshAnimationInstance * getOwner () const
 

Protected Attributes

MeshAnimationSubmeshm_animationObject
 
castor::Vector< float > m_cur
 

Additional Inherited Members

- Protected Member Functions inherited from castor::OwnedBy< MeshAnimationInstance >
 OwnedBy (MeshAnimationInstance &owner)
 Constructor.
 

Constructor & Destructor Documentation

◆ MeshAnimationInstanceSubmesh() [1/3]

C3D_API castor3d::MeshAnimationInstanceSubmesh::MeshAnimationInstanceSubmesh ( MeshAnimationInstanceSubmesh && rhs)
default

◆ MeshAnimationInstanceSubmesh() [2/3]

C3D_API castor3d::MeshAnimationInstanceSubmesh::MeshAnimationInstanceSubmesh ( MeshAnimationInstanceSubmesh const & rhs)
delete

◆ MeshAnimationInstanceSubmesh() [3/3]

C3D_API castor3d::MeshAnimationInstanceSubmesh::MeshAnimationInstanceSubmesh ( MeshAnimationInstance & animationInstance,
MeshAnimationSubmesh & animationObject )

Constructor.

Parameters
[in]animationInstanceThe parent skeleton animation instance.
[in]animationObjectThe animation object.

◆ ~MeshAnimationInstanceSubmesh()

virtual C3D_API castor3d::MeshAnimationInstanceSubmesh::~MeshAnimationInstanceSubmesh ( )
virtualdefault

Destructor.

Member Function Documentation

◆ clear()

C3D_API void castor3d::MeshAnimationInstanceSubmesh::clear ( )

Moves the object back to initial state.

◆ getSubmesh()

C3D_API Submesh const & castor3d::MeshAnimationInstanceSubmesh::getSubmesh ( ) const

The submesh.

◆ getWeights()

castor::Vector< float > castor3d::MeshAnimationInstanceSubmesh::getWeights ( ) const
inline

The current weights.

References m_cur.

◆ operator=() [1/2]

C3D_API MeshAnimationInstanceSubmesh & castor3d::MeshAnimationInstanceSubmesh::operator= ( MeshAnimationInstanceSubmesh && rhs)
delete

◆ operator=() [2/2]

C3D_API MeshAnimationInstanceSubmesh & castor3d::MeshAnimationInstanceSubmesh::operator= ( MeshAnimationInstanceSubmesh const & rhs)
delete

◆ update()

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.

Parameters
[in]factorThe percentage between prv and cur.
[in]prvThe previous animation buffer (factor 0).
[in]curThe current animation buffer (factor 1).
[in]prvbbThe bounding box for the previous animation buffer.
[in]curbbThe bounding box for the current animation buffer.

Member Data Documentation

◆ m_animationObject

MeshAnimationSubmesh& castor3d::MeshAnimationInstanceSubmesh::m_animationObject
protected

The animation object.

◆ m_cur

castor::Vector< float > castor3d::MeshAnimationInstanceSubmesh::m_cur
protected

The current animation buffer.

Referenced by getWeights().


The documentation for this class was generated from the following file: