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

Method RenderDebugInfo

trinity/Eve/EveEffectRoot2.cpp:810–837  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

808
809// -----------------------------------------------------------------------------
810void EveEffectRoot2::RenderDebugInfo( ITr2DebugRenderer2& renderer )
811{
812 if( renderer.HasOption( GetRawRoot(), "Bounding Sphere" ) )
813 {
814 renderer.DrawSphere( this, m_boundingSphere.GetXYZ(), GetBoundingSphereRadius(), 8, Tr2DebugRenderer::Wireframe, 0xffff00ff );
815 }
816
817 for( auto it = begin( m_effectChildren ); it != end( m_effectChildren ); ++it )
818 {
819 if( auto renderable = dynamic_cast<ITr2DebugRenderable*>( *it ) )
820 {
821 renderable->RenderDebugInfo( renderer );
822 }
823 }
824
825 if( renderer.HasOption( GetRawRoot(), "Lights" ) )
826 {
827 for( auto it = begin( m_lights ); it != end( m_lights ); ++it )
828 {
829 ( *it )->RenderDebugInfo( renderer, m_worldTransform );
830 }
831 }
832
833 for( auto it = m_observers.begin(); it != m_observers.end(); ++it )
834 {
835 ( *it )->RenderDebugInfo( renderer );
836 }
837}
838
839// -----------------------------------------------------------------------------
840void EveEffectRoot2::SetControllerVariable( const char* name, float value )

Callers

nothing calls this directly

Calls 6

HasOptionMethod · 0.80
beginFunction · 0.50
endFunction · 0.50
DrawSphereMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected