Aeon Engine c550894
AeonGames Open Source Game Engine
Loading...
Searching...
No Matches
AeonGames::Skeleton Class Reference

Skeletal animation resource containing a hierarchy of joints. More...

#include <aeongames/Skeleton.hpp>

Inheritance diagram for AeonGames::Skeleton:
Inheritance graph
Collaboration diagram for AeonGames::Skeleton:
Collaboration graph

Classes

class  Joint
 A single joint within a skeleton hierarchy. More...

Public Member Functions

DLL Skeleton ()
 Construct an empty skeleton.
DLL ~Skeleton ()
 Destructor.
DLL void LoadFromMemory (const void *aBuffer, size_t aBufferSize) final
 Load the skeleton from a memory buffer.
DLL void LoadFromPBMsg (const SkeletonMsg &aSkeletonMsg)
 Load the skeleton from a protobuf message.
DLL void Unload () final
 Unload and release skeleton data.
DLL const std::vector< Joint > & GetJoints () const
 Get the joint list.
Public Member Functions inherited from AeonGames::Resource
virtual ~Resource ()
 Virtual destructor.
DLL void LoadFromId (uint32_t aId)
 Load the resource identified by a numeric id.
DLL void LoadFromFile (const std::string &aFilename)
 Load the resource from a file on disk.
DLL size_t GetConsecutiveId () const
 Get the Consecutive Id for the resource object.

Detailed Description

Skeletal animation resource containing a hierarchy of joints.

Definition at line 29 of file Skeleton.hpp.

Member Function Documentation

◆ GetJoints()

const std::vector< Skeleton::Joint > & AeonGames::Skeleton::GetJoints ( ) const

Get the joint list.

Returns
Const reference to the vector of joints.

Definition at line 124 of file Skeleton.cpp.

◆ LoadFromMemory()

void AeonGames::Skeleton::LoadFromMemory ( const void * aBuffer,
size_t aBufferSize )
finalvirtual

Load the skeleton from a memory buffer.

Parameters
aBufferPointer to the data buffer.
aBufferSizeSize of the buffer in bytes.

Implements AeonGames::Resource.

Definition at line 59 of file Skeleton.cpp.

◆ LoadFromPBMsg()

void AeonGames::Skeleton::LoadFromPBMsg ( const SkeletonMsg & aSkeletonMsg)

Load the skeleton from a protobuf message.

Parameters
aSkeletonMsgThe skeleton message to read from.

Definition at line 64 of file Skeleton.cpp.

◆ Unload()

void AeonGames::Skeleton::Unload ( )
finalvirtual

Unload and release skeleton data.

Implements AeonGames::Resource.

Definition at line 119 of file Skeleton.cpp.


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