| 763 | } |
| 764 | |
| 765 | void 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 | |
| 809 | void EveSpaceObject2::RenderDebugInfo( ITr2DebugRenderer2& renderer ) |
| 810 | { |