MCPcopy Create free account
hub / github.com/comaps/comaps / EnableWritingToStencil

Method EnableWritingToStencil

libs/drape_frontend/postprocess_renderer.cpp:371–379  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

369}
370
371void PostprocessRenderer::EnableWritingToStencil(ref_ptr<dp::GraphicsContext> context) const
372{
373 if (!m_frameStarted || !CanRenderAntialiasing())
374 return;
375 context->SetStencilTestEnabled(true);
376 context->SetStencilFunction(dp::StencilFace::FrontAndBack, dp::TestFunction::Always);
377 context->SetStencilActions(dp::StencilFace::FrontAndBack, dp::StencilAction::Keep, dp::StencilAction::Keep,
378 dp::StencilAction::Replace);
379}
380
381void PostprocessRenderer::DisableWritingToStencil(ref_ptr<dp::GraphicsContext> context) const
382{

Callers 1

StencilWriterGuardMethod · 0.80

Calls 3

SetStencilTestEnabledMethod · 0.45
SetStencilFunctionMethod · 0.45
SetStencilActionsMethod · 0.45

Tested by

no test coverage detected