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

Method RenderDebugInfo

trinity/Tr2MeshBase.cpp:585–592  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585void 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
594std::vector<Tr2MeshAreaPtr> Tr2MeshBase::GetAllAreas() const
595{

Callers

nothing calls this directly

Calls 3

Tr2DebugColorClass · 0.85
HasOptionMethod · 0.80
DrawBoxMethod · 0.45

Tested by

no test coverage detected