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

Method Execute

trinity/RenderJob/TriStepRenderObject.cpp:43–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43TriStepResult TriStepRenderObject::Execute( Be::Time realTime, Be::Time simTime, Tr2RenderContext& renderContext )
44{
45 if( !m_renderable )
46 {
47 return RS_OK;
48 }
49
50 ::GetBatchesFromRenderables( &m_renderable, 1, nullptr, m_batches, s_allTypes, 4 );
51
52 for( auto it = m_batches.begin(); it != m_batches.end(); ++it )
53 {
54 it->second->Finalize();
55 }
56
57 for( unsigned i = 0; i != 4; ++i )
58 {
59 if( m_typeEnabled[i] )
60 {
61 renderContext.m_esm.ApplyStandardStates( s_renderingModes[i] );
62 renderContext.RenderBatchesWithOverride( m_batches[s_allTypes[i]], m_effectOverride );
63 }
64 }
65
66 for( auto it = m_batches.begin(); it != m_batches.end(); ++it )
67 {
68 it->second->Clear();
69 }
70
71 return RS_OK;
72}
73
74void TriStepRenderObject::py__init__( ITr2Renderable* obj )
75{

Callers

nothing calls this directly

Calls 7

FinalizeMethod · 0.80
ApplyStandardStatesMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected