| 41 | } |
| 42 | |
| 43 | TriStepResult 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 | |
| 74 | void TriStepRenderObject::py__init__( ITr2Renderable* obj ) |
| 75 | { |
nothing calls this directly
no test coverage detected