MCPcopy Create free account
hub / github.com/carbonengine/trinity / GetBoneList

Function GetBoneList

trinity/Tr2GrannyAnimation.cpp:24–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22namespace Tr2GrannyAnimationUtils
23{
24bool GetBoneList( Tr2GrannyAnimation* animationUpdater, const Float4x3*& bones, size_t& boneCount )
25{
26 if( animationUpdater && animationUpdater->IsInitialized() )
27 {
28 boneCount = size_t( animationUpdater->GetMeshBoneCount() );
29 if( boneCount )
30 {
31 bones = animationUpdater->GetMeshBoneMatrixList();
32 return true;
33 }
34 else
35 {
36 bones = nullptr;
37 }
38 }
39 else
40 {
41 boneCount = 0;
42 bones = nullptr;
43 }
44 return false;
45}
46
47std::vector<int32_t> CreateMapping( const cmf::Skeleton& skeleton, cmf::Span<cmf::BoneBinding> boneBindings, uint32_t meshBoneCount )
48{

Callers 11

UpdateSyncronousMethod · 0.85
UpdateAsyncronousMethod · 0.85
RenderDebugInfoMethod · 0.85
UpdateVisibilityMethod · 0.85
GetLightsMethod · 0.85
UpdateVisibilityMethod · 0.85
DoUpdateAsyncronousMethod · 0.85
RenderDebugInfoMethod · 0.85
GetBoneTransformsMethod · 0.85

Calls 3

IsInitializedMethod · 0.45
GetMeshBoneCountMethod · 0.45
GetMeshBoneMatrixListMethod · 0.45

Tested by

no test coverage detected