PixelLightAPI
.
|
Joint animation class. More...
#include <JointAni.h>
Classes | |
class | AniJoint |
Holds information about which joint components are animated. More... | |
Public Types | |
enum | EAttribute { AX = 1<<0, AY = 1<<1, AZ = 1<<2, AYaw = 1<<3, APitch = 1<<4, ARoll = 1<<5, AW = 1<<6 } |
Tell which attribute the track modify. More... | |
Public Member Functions | |
PLMESH_API | JointAni () |
Constructor. | |
virtual PLMESH_API | ~JointAni () |
Destructor. | |
PLMESH_API PLCore::Array < AniJoint > & | GetJoints () |
Returns the animation joints. | |
PLMESH_API bool | ApplyJointStates (PLCore::Array< JointHandler > &lstJointHandlers, PLCore::uint32 nFrame, float fWeight=1.0f) const |
Applies the joint states from the given joint animation frame to the given joint states. | |
PLMESH_API bool | ApplyJointStates (PLCore::Array< JointHandler > &lstJointHandlers, PLCore::uint32 nFrame1, PLCore::uint32 nFrame2, float fTime, float fWeight=1.0f) const |
Applies the blended joint states from the given joint animation frames to the given joint states. | |
virtual PLMESH_API JointAni & | operator= (const JointAni &cSource) |
Joint animation class.
Tell which attribute the track modify.
PLMESH_API PLMesh::JointAni::JointAni | ( | ) |
Constructor.
virtual PLMESH_API PLMesh::JointAni::~JointAni | ( | ) | [virtual] |
Destructor.
PLMESH_API PLCore::Array<AniJoint>& PLMesh::JointAni::GetJoints | ( | ) |
Returns the animation joints.
PLMESH_API bool PLMesh::JointAni::ApplyJointStates | ( | PLCore::Array< JointHandler > & | lstJointHandlers, |
PLCore::uint32 | nFrame, | ||
float | fWeight = 1.0f |
||
) | const |
PLMESH_API bool PLMesh::JointAni::ApplyJointStates | ( | PLCore::Array< JointHandler > & | lstJointHandlers, |
PLCore::uint32 | nFrame1, | ||
PLCore::uint32 | nFrame2, | ||
float | fTime, | ||
float | fWeight = 1.0f |
||
) | const |
Applies the blended joint states from the given joint animation frames to the given joint states.
[out] | lstJointHandlers | Joint handlers to manipulate |
[in] | nFrame1 | Joint animation frame 1 |
[in] | nFrame2 | Joint animation frame 2 |
[in] | fTime | Joint animation time (0.0-1.0) |
[in] | fWeight | Weight (0.0-1.0) |
|