| 22 | namespace Tr2GrannyAnimationUtils |
| 23 | { |
| 24 | bool 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 | |
| 47 | std::vector<int32_t> CreateMapping( const cmf::Skeleton& skeleton, cmf::Span<cmf::BoneBinding> boneBindings, uint32_t meshBoneCount ) |
| 48 | { |
no test coverage detected