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

Function DrawPartiallyInto

trinity/PostProcess/Tr2PostProcessRenderer.cpp:48–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46}
47
48void DrawPartiallyInto( const Tr2TextureAL& dest, Tr2LoadAction::Type loadAction, const Tr2TextureAL& src, Tr2RenderContext& renderContext, const Vector2 tlTextureCoords = Vector2( 0, 0 ), const Vector2 brTextureCoords = Vector2( 1, 1 ) )
49{
50 renderContext.RenderPassHint( { loadAction, Tr2StoreAction::STORE }, {} );
51 renderContext.m_esm.PushRenderTarget( dest );
52 Tr2Renderer::DrawTexture( renderContext, src, tlTextureCoords, brTextureCoords, Tr2Blitter::FILTER_LINEAR );
53 renderContext.m_esm.PopRenderTarget();
54}
55
56void DrawInto( const Tr2TextureAL& dest, Tr2LoadAction::Type loadAction, Tr2Effect* effect, Tr2RenderContext& renderContext )
57{

Callers

nothing calls this directly

Calls 3

RenderPassHintMethod · 0.45
PushRenderTargetMethod · 0.45
PopRenderTargetMethod · 0.45

Tested by

no test coverage detected