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

Method RenderDebugInfo

trinity/Eve/Renderable/EveSceneStaticParticles.cpp:185–193  ·  view source on GitHub ↗

-------------------------------------------------------------------------------- Description: Render debug info of this static particle system: bounding sphere --------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

183// Render debug info of this static particle system: bounding sphere
184// --------------------------------------------------------------------------------
185void EveSceneStaticParticles::RenderDebugInfo( ITr2DebugRenderer2& renderer )
186{
187 if( renderer.HasOption( this, "Bounding Sphere" ) )
188 {
189 // draw bounding sphere
190 Vector3 center = TransformCoord( m_boundingSphere.GetXYZ(), m_worldMatrix );
191 renderer.DrawSphere( this, center, m_boundingSphere.w, 10, Tr2DebugRenderer::Wireframe, 0xffffff00 );
192 }
193}
194
195// --------------------------------------------------------------------------------
196// Description:

Callers

nothing calls this directly

Calls 2

HasOptionMethod · 0.80
DrawSphereMethod · 0.45

Tested by

no test coverage detected