Plasma Engine  2.0
Loading...
Searching...
No Matches
plSkeleton Class Reference

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 plSkeletonJointGetJointByIndex (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< plBasisAxism_BoneDirection
 The direction in which the bones shall point for visualization.
 

Protected Attributes

friend plSkeletonBuilder
 
plDynamicArray< plSkeletonJointm_Joints
 
plUniquePtr< ozz::animation::Skeleton > m_pOzzSkeleton
 

Detailed Description

The skeleton class encapsulates the information about the joint structure for a model.

Member Function Documentation

◆ Save()

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.


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