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

Method GetDebugOptions

trinity/Eve/SpaceObject/EveSpaceObject2.cpp:765–807  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

763}
764
765void EveSpaceObject2::GetDebugOptions( Tr2DebugRendererOptions& options )
766{
767 options.insert( "Projections" );
768 options.insert( "Local Bounding Box" );
769 options.insert( "Bounding Box" );
770 options.insert( "Bounding Sphere" );
771 options.insert( "Bounding Sphere Accumulated" );
772 options.insert( "Mesh Area Bounding Boxes" );
773 options.insert( "Dynamic Bounds" );
774 options.insert( "Bones" );
775 options.insert( "Names" );
776 options.insert( "Children" );
777 options.insert( "Decals" );
778 options.insert( "Lights" );
779 options.insert( "Locators" );
780 options.insert( "Shield" );
781 options.insert( "ClipSphere" );
782
783 for( auto it = m_observers.begin(); it != m_observers.end(); ++it )
784 {
785 ( *it )->GetDebugOptions( options );
786 }
787
788 for( auto it = m_locatorSets.begin(); it != m_locatorSets.end(); ++it )
789 {
790 std::string name = "Locators ";
791 name += ( *it )->GetName();
792 options.insert( name.c_str() );
793 }
794
795 for( auto it = begin( m_attachments ); it != end( m_attachments ); ++it )
796 {
797 ( *it )->GetDebugOptions( options );
798 }
799
800 for( auto it = begin( m_effectChildren ); it != end( m_effectChildren ); ++it )
801 {
802 if( auto renderable = dynamic_cast<ITr2DebugRenderable*>( *it ) )
803 {
804 renderable->GetDebugOptions( options );
805 }
806 }
807}
808
809void EveSpaceObject2::RenderDebugInfo( ITr2DebugRenderer2& renderer )
810{

Callers

nothing calls this directly

Calls 5

beginFunction · 0.50
endFunction · 0.50
beginMethod · 0.45
endMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected