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

Method Render

trinity/TriLineSet.cpp:406–418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

404}
405
406void TriLineSet::Render( Tr2RenderContext& renderContext )
407{
408 if( m_vertices.empty() )
409 {
410 return;
411 }
412
413 renderContext.m_esm.ApplyVertexDeclaration( g_debugResourceHelper.GetVertexPosColorDecl() );
414
415 Tr2Renderer::SetWorldTransform( m_transform );
416
417 g_debugResourceHelper.GetLineEffect()->Render( this, renderContext );
418}
419
420void TriLineSet::SubmitGeometry( Tr2RenderContext& renderContext )
421{

Callers

nothing calls this directly

Calls 4

emptyMethod · 0.80
GetVertexPosColorDeclMethod · 0.80
GetLineEffectMethod · 0.80

Tested by

no test coverage detected