RavEngine
Loading...
Searching...
No Matches
RavEngine::SkeletonAsset Class Reference

Public Member Functions

 SkeletonAsset (const std::string &path)
 
const auto & GetSkeleton () const
 
const auto GetBindposeHandle () const
 
const auto GetBindposes () const
 
const auto GetBoneHierarchy () const
 
bool HasBone (const std::string_view boneName) const
 
std::optional< uint16_t > IndexForBone (const std::string_view boneName) const
 

Member Function Documentation

◆ GetBindposeHandle()

const auto RavEngine::SkeletonAsset::GetBindposeHandle ( ) const
inline
Returns
bindposes for use in a shader

◆ GetBindposes()

const auto RavEngine::SkeletonAsset::GetBindposes ( ) const
inline
Returns
bindposes for use in software

◆ GetBoneHierarchy()

const auto RavEngine::SkeletonAsset::GetBoneHierarchy ( ) const
inline
Returns
the bone hierarchy information. This is a linear buffer where each bone is represented by one entry in the buffer. The value at each index is the index of the bone's parent. If the value is -1, then the bone has no parent

◆ GetSkeleton()

const auto & RavEngine::SkeletonAsset::GetSkeleton ( ) const
inline

Get the internal skeleton. For internal use only.

◆ HasBone()

bool SkeletonAsset::HasBone ( const std::string_view  boneName) const
Parameters
boneNamename of the bone to find
Returns
True if the skeleton has a bone by the name, false if not

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