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

Method BeginRendering

trinity/Tr2PickBuffer.cpp:51–67  ·  view source on GitHub ↗

------------------------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

49
50// ------------------------------------------------------------------------------------------------------
51bool Tr2PickBuffer::BeginRendering( float initialDepth, Tr2RenderContext& renderContext )
52{
53 if( !m_pickTarget.IsValid() )
54 {
55 // This could happen if device is lost
56 return false;
57 }
58
59 renderContext.m_esm.PushRenderTarget( m_pickTarget );
60 renderContext.m_esm.PushDepthStencilBuffer( m_depthBuffer );
61
62 CR( renderContext.Clear( CLEARFLAGS_TARGET | CLEARFLAGS_ZBUFFER, m_clearColor, initialDepth ) );
63
64 renderContext.m_esm.SetFullScreenViewport();
65
66 return true;
67}
68
69// ------------------------------------------------------------------------------------------------------
70bool Tr2PickBuffer::EndRendering( Tr2RenderContext& renderContext )

Callers 5

PickMethod · 0.45
RenderPickingMethod · 0.45
RenderPickingMethod · 0.45
UpdateQuadRendererMethod · 0.45
PerformPickingMethod · 0.45

Calls 5

SetFullScreenViewportMethod · 0.80
IsValidMethod · 0.45
PushRenderTargetMethod · 0.45
ClearMethod · 0.45

Tested by

no test coverage detected