PixelLightAPI
.
|
Morph target animation class. More...
#include <MorphTargetAni.h>
Classes | |
class | AniMorphTarget |
Animation morph target. More... | |
Public Member Functions | |
PLMESH_API | MorphTargetAni (const PLCore::String &sName, PLCore::ElementManager< MorphTargetAni > *pManager=nullptr) |
Constructor. | |
virtual PLMESH_API | ~MorphTargetAni () |
Destructor. | |
PLMESH_API PLCore::Array < AniMorphTarget > & | GetMorphTargets () |
Returns the morph target animation morph targets. | |
PLMESH_API bool | ApplyMorphTargetWeight (PLCore::Array< float > &lstMorphTargetWeights, PLCore::uint32 nFrame, float fWeight=1.0f, const Mesh *pMesh=nullptr) const |
Applies the morph target weight from the given morph target frame to the given morph target weights. | |
PLMESH_API bool | ApplyMorphTargetWeight (PLCore::Array< float > &lstMorphTargetWeights, PLCore::uint32 nFrame1, PLCore::uint32 nFrame2, float fTime, float fWeight=1.0f, const Mesh *pMesh=nullptr) const |
Applies the blended morph target weight from the given morph target frames to the given morph target weights. | |
virtual PLMESH_API MorphTargetAni & | operator= (const MorphTargetAni &cSource) |
virtual PLMESH_API PLCore::String | GetSourceName () const override |
Get the animation source name. |
Morph target animation class.
PLMESH_API PLMesh::MorphTargetAni::MorphTargetAni | ( | const PLCore::String & | sName, |
PLCore::ElementManager< MorphTargetAni > * | pManager = nullptr |
||
) |
Constructor.
[in] | sName | Name |
[in] | pManager | Element manager using this element, can be a null pointer |
virtual PLMESH_API PLMesh::MorphTargetAni::~MorphTargetAni | ( | ) | [virtual] |
Destructor.
PLMESH_API PLCore::Array<AniMorphTarget>& PLMesh::MorphTargetAni::GetMorphTargets | ( | ) |
Returns the morph target animation morph targets.
PLMESH_API bool PLMesh::MorphTargetAni::ApplyMorphTargetWeight | ( | PLCore::Array< float > & | lstMorphTargetWeights, |
PLCore::uint32 | nFrame, | ||
float | fWeight = 1.0f , |
||
const Mesh * | pMesh = nullptr |
||
) | const |
Applies the morph target weight from the given morph target frame to the given morph target weights.
[out] | lstMorphTargetWeights | Morph target weights to manipulate |
[in] | nFrame | Morph target animation frame |
[in] | fWeight | Weight (0.0-1.0) |
[in] | pMesh | Mesh of the given morph target weights array, can be a null pointer |
PLMESH_API bool PLMesh::MorphTargetAni::ApplyMorphTargetWeight | ( | PLCore::Array< float > & | lstMorphTargetWeights, |
PLCore::uint32 | nFrame1, | ||
PLCore::uint32 | nFrame2, | ||
float | fTime, | ||
float | fWeight = 1.0f , |
||
const Mesh * | pMesh = nullptr |
||
) | const |
Applies the blended morph target weight from the given morph target frames to the given morph target weights.
[out] | lstMorphTargetWeights | Morph target weights to manipulate |
[in] | nFrame1 | Morph target animation frame 1 |
[in] | nFrame2 | Morph target animation frame 2 |
[in] | fTime | Morph target animation time (0.0-1.0) |
[in] | fWeight | Weight (0.0-1.0) |
[in] | pMesh | Mesh of the given morph target weights array, can be a null pointer |
virtual PLMESH_API MorphTargetAni& PLMesh::MorphTargetAni::operator= | ( | const MorphTargetAni & | cSource | ) | [virtual] |
virtual PLMESH_API PLCore::String PLMesh::MorphTargetAni::GetSourceName | ( | ) | const [override, virtual] |
Get the animation source name.
Reimplemented from PLRenderer::AnimationInfo.
|