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

Method RenderDebugInfo

trinity/Eve/AudioGameObject.cpp:183–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183void AudioGameObject::RenderDebugInfo( ITr2DebugRenderer2& renderer )
184{
185 if( renderer.HasOption( GetRawRoot(), "Audio Speaker" ) )
186 {
187 Matrix rotationMatrix = RotationMatrix( m_rotation );
188 Vector3 orientation = rotationMatrix.GetZ(); // Z-axis is typically the forward direction
189 renderer.DrawAudioSpeaker( this, m_worldTransform, 30, 5, Tr2DebugRenderer::Wireframe, 0xffff00ff );
190 }
191
192 if( ITr2DebugRenderablePtr tmp = BlueCastPtr( m_audioEmitter ) )
193 {
194 tmp->RenderDebugInfo( renderer );
195 }
196}
197
198bool AudioGameObject::OnModified( Be::Var* val )
199{

Callers

nothing calls this directly

Calls 3

HasOptionMethod · 0.80
DrawAudioSpeakerMethod · 0.80
GetZMethod · 0.45

Tested by

no test coverage detected