-------------------------------------------------------------------------------------- Description: Finalizes the batch and renders with the specified rendering mode. Arguments: batch - the accumulator we gather the batches into batchType - the batch type to gather rm - the rendering mode to use --------------------------------------------------------------------------------------
| 1090 | // rm - the rendering mode to use |
| 1091 | // -------------------------------------------------------------------------------------- |
| 1092 | void EveSpaceScene::RenderBatch( ITriRenderBatchAccumulator* batch, |
| 1093 | Tr2EffectStateManager::RenderingMode rm, |
| 1094 | Tr2RenderContext& renderContext ) |
| 1095 | { |
| 1096 | auto& visualizerEffect = m_visualizerEffects[m_visualizeMethod]; |
| 1097 | |
| 1098 | batch->Finalize(); |
| 1099 | renderContext.m_esm.ApplyStandardStates( rm ); |
| 1100 | switch( visualizerEffect.type ) |
| 1101 | { |
| 1102 | case VisualizerEffect::PIXEL_SHADER_REPLACEMENT: |
| 1103 | renderContext.RenderBatchesWithOverride( batch, visualizerEffect.effect ); |
| 1104 | break; |
| 1105 | case VisualizerEffect::FULL_SCREEN_QUAD_OVERLAY: |
| 1106 | renderContext.RenderBatches( batch ); |
| 1107 | break; |
| 1108 | default: |
| 1109 | break; |
| 1110 | } |
| 1111 | batch->Clear(); |
| 1112 | } |
| 1113 | |
| 1114 | // -------------------------------------------------------------------------------------- |
| 1115 | // Description: |
nothing calls this directly
no test coverage detected