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

Method GetMeshBindingIndices

trinity/Tr2GrannyAnimation.cpp:455–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455const std::pair<const int32_t*, size_t> Tr2GrannyAnimation::GetMeshBindingIndices() const
456{
457 if( IsUsingCMF() )
458 {
459 return std::make_pair( m_skeletonBoneIndices.data(), m_skeletonBoneIndices.size() );
460 }
461#if WITH_GRANNY
462 else
463 {
464 auto boneCount = GrannyGetMeshBindingBoneCount( m_meshBinding );
465 return std::make_pair( GrannyGetMeshBindingToBoneIndices( m_meshBinding ), boneCount );
466 }
467#else
468 else
469 {
470 return std::make_pair( nullptr, 0 );
471 }
472#endif
473}
474
475bool Tr2GrannyAnimation::GetBoneWorldTransform( const char* boneName, Matrix& transform ) const
476{

Callers

nothing calls this directly

Calls 4

IsUsingCMFFunction · 0.85
sizeMethod · 0.80
getMethod · 0.80
IsUsingCMFMethod · 0.45

Tested by

no test coverage detected