Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Friends | List of all members
castor3d::MeshMorphTarget Class Reference

#include <MeshMorphTarget.hpp>

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

Public Member Functions

C3D_API MeshMorphTarget (MeshAnimation &parent, castor::Milliseconds const &timeIndex)
 Constructor.
 
C3D_API void setTargetsWeights (Submesh const &submesh, castor::Vector< float > weights)
 Adds a submesh buffer.
 
C3D_API void setTargetWeight (Submesh const &submesh, uint32_t targetIndex, float targetWeight)
 Adds a submesh buffer.
 
C3D_API SubmeshTargetWeightMap::const_iterator find (Submesh const &submesh) const
 
SubmeshTargetWeightMap::const_iterator begin () const
 
SubmeshTargetWeightMap::iterator begin ()
 
SubmeshTargetWeightMap::const_iterator end () const
 
SubmeshTargetWeightMap::iterator end ()
 
- Public Member Functions inherited from castor3d::AnimationKeyFrame
 AnimationKeyFrame (castor::Milliseconds const &timeIndex=0_ms)
 Constructor.
 
virtual C3D_API ~AnimationKeyFrame () noexcept=default
 Destructor.
 
virtual C3D_API void initialise ()
 Initialises the keyframe.
 
castor::Milliseconds const & getTimeIndex () const
 
castor::BoundingBox const & getBoundingBox () const
 
- Public Member Functions inherited from castor::OwnedBy< MeshAnimation >
MeshAnimation * getOwner () const
 

Friends

class BinaryParser< MeshMorphTarget >
 

Additional Inherited Members

- Protected Member Functions inherited from castor::OwnedBy< MeshAnimation >
 OwnedBy (MeshAnimation &owner)
 Constructor.
 
- Protected Attributes inherited from castor3d::AnimationKeyFrame
castor::Milliseconds m_timeIndex
 
castor::BoundingBox m_boundingBox
 

Constructor & Destructor Documentation

◆ MeshMorphTarget()

C3D_API castor3d::MeshMorphTarget::MeshMorphTarget ( MeshAnimation & parent,
castor::Milliseconds const & timeIndex )

Constructor.

Parameters
[in]parentThe parent animation.
[in]timeIndexWhen the key frame starts.

Member Function Documentation

◆ begin() [1/2]

SubmeshTargetWeightMap::iterator castor3d::MeshMorphTarget::begin ( )
inline
Returns
The beginning of the submeshes buffers.

◆ begin() [2/2]

SubmeshTargetWeightMap::const_iterator castor3d::MeshMorphTarget::begin ( ) const
inline
Returns
The beginning of the submeshes buffers.

◆ end() [1/2]

SubmeshTargetWeightMap::iterator castor3d::MeshMorphTarget::end ( )
inline
Returns
The end of the submeshes buffers.

◆ end() [2/2]

SubmeshTargetWeightMap::const_iterator castor3d::MeshMorphTarget::end ( ) const
inline
Returns
The end of the submeshes buffers.

◆ find()

C3D_API SubmeshTargetWeightMap::const_iterator castor3d::MeshMorphTarget::find ( Submesh const & submesh) const
Returns
The submesh buffer matching given submesh.

◆ setTargetsWeights()

C3D_API void castor3d::MeshMorphTarget::setTargetsWeights ( Submesh const & submesh,
castor::Vector< float > weights )

Adds a submesh buffer.

◆ setTargetWeight()

C3D_API void castor3d::MeshMorphTarget::setTargetWeight ( Submesh const & submesh,
uint32_t targetIndex,
float targetWeight )

Adds a submesh buffer.

Friends And Related Symbol Documentation

◆ BinaryParser< MeshMorphTarget >

friend class BinaryParser< MeshMorphTarget >
friend

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