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

Method RenderBatch

trinity/Eve/EveSpaceScene.cpp:1092–1112  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- 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 --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

1090// rm - the rendering mode to use
1091// --------------------------------------------------------------------------------------
1092void 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:

Callers

nothing calls this directly

Calls 5

FinalizeMethod · 0.80
ApplyStandardStatesMethod · 0.80
RenderBatchesMethod · 0.80
ClearMethod · 0.45

Tested by

no test coverage detected