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

Method SetEffectEnabled

libs/drape_frontend/postprocess_renderer.cpp:195–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

193}
194
195void PostprocessRenderer::SetEffectEnabled(ref_ptr<dp::GraphicsContext> context, Effect effect, bool enabled)
196{
197 auto const oldValue = m_effects;
198 auto const effectMask = static_cast<uint32_t>(effect);
199 m_effects = (m_effects & ~effectMask) | (enabled ? effectMask : 0);
200
201 if (m_width != 0 && m_height != 0 && oldValue != m_effects)
202 UpdateFramebuffers(context, m_width, m_height);
203}
204
205bool PostprocessRenderer::IsEffectEnabled(Effect effect) const
206{

Callers 2

AcceptMessageMethod · 0.80
OnContextCreateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected