![]() |
Plasma Engine
2.0
|
The skeleton class encapsulates the information about the joint structure for a model. More...
#include <Skeleton.h>
Public Member Functions | |
plSkeleton (plSkeleton &&rhs) | |
void | operator= (plSkeleton &&rhs) |
plUInt16 | GetJointCount () const |
Returns the number of joints in the skeleton. | |
const plSkeletonJoint & | GetJointByIndex (plUInt16 uiIndex) const |
Returns the nth joint. | |
plUInt16 | FindJointByName (const plTempHashedString &sName) const |
Allows to find a specific joint in the skeleton by name. Returns plInvalidJointIndex if not found. | |
void | Save (plStreamWriter &inout_stream) const |
Checks if two skeletons are compatible (same joint count and hierarchy) | |
void | Load (plStreamReader &inout_stream) |
Loads the skeleton from the given stream. | |
bool | IsJointDescendantOf (plUInt16 uiJoint, plUInt16 uiExpectedParent) const |
const ozz::animation::Skeleton & | GetOzzSkeleton () const |
plUInt64 | GetHeapMemoryUsage () const |
Public Attributes | |
plEnum< plBasisAxis > | m_BoneDirection |
The direction in which the bones shall point for visualization. | |
Protected Attributes | |
friend | plSkeletonBuilder |
plDynamicArray< plSkeletonJoint > | m_Joints |
plUniquePtr< ozz::animation::Skeleton > | m_pOzzSkeleton |
The skeleton class encapsulates the information about the joint structure for a model.
void plSkeleton::Save | ( | plStreamWriter & | inout_stream | ) | const |
Checks if two skeletons are compatible (same joint count and hierarchy)
Saves the skeleton in a given stream.