| 583 | } |
| 584 | |
| 585 | void Tr2MeshBase::RenderDebugInfo( const Matrix& worldTransform, ITr2DebugRenderer2& renderer, const Matrix* boneTransforms, const int32_t* meshBindingIndices, size_t boneCount, const Tr2MorphTargetAnimationData* morphTargets, size_t morphTargetsCount ) |
| 586 | { |
| 587 | if( renderer.HasOption( this, "Mesh Bounds" ) ) |
| 588 | { |
| 589 | auto bounds = GetBounds( boneTransforms, meshBindingIndices, boneCount, morphTargets, morphTargetsCount ); |
| 590 | renderer.DrawBox( this, worldTransform, bounds.m_min, bounds.m_max, Tr2DebugRenderer::Wireframe, Tr2DebugColor( 0xffaa8800, 0x22aa8800 ) ); |
| 591 | } |
| 592 | } |
| 593 | |
| 594 | std::vector<Tr2MeshAreaPtr> Tr2MeshBase::GetAllAreas() const |
| 595 | { |
nothing calls this directly
no test coverage detected