-------------------------------------------------------------------------------------- Description: Gathers, finalizes, renders and clears batches of the type provided using the provided rendering mode Arguments: renderables - object renderables that we want to gather batches from batch - the accumulator we gather the batches into batchType - the batch type to gather rm - the rendering mode to use
| 1060 | // rm - the rendering mode to use |
| 1061 | // -------------------------------------------------------------------------------------- |
| 1062 | void EveSpaceScene::RenderRenderables( const std::vector<ITr2Renderable*>& renderables, |
| 1063 | ITriRenderBatchAccumulator* batch, |
| 1064 | TriBatchType batchType, |
| 1065 | Tr2EffectStateManager::RenderingMode rm, |
| 1066 | Tr2RenderContext& renderContext, |
| 1067 | Tr2RenderReason reason ) |
| 1068 | { |
| 1069 | TriPoolAllocator* allocator = Tr2Renderer::GetPoolAllocator(); |
| 1070 | if( !allocator ) |
| 1071 | { |
| 1072 | return; |
| 1073 | } |
| 1074 | for( auto it = renderables.cbegin(); it != renderables.cend(); ++it ) |
| 1075 | { |
| 1076 | ITr2Renderable* r = *it; |
| 1077 | Tr2PerObjectData* objectData = r->GetPerObjectData( batch ); |
| 1078 | r->GetBatches( batch, batchType, objectData, reason ); |
| 1079 | } |
| 1080 | |
| 1081 | RenderBatch( batch, rm, renderContext ); |
| 1082 | } |
| 1083 | |
| 1084 | // -------------------------------------------------------------------------------------- |
| 1085 | // Description: |
nothing calls this directly
no test coverage detected