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

Method Render

libs/drape_frontend/gui/layer_render.cpp:52–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void LayerRenderer::Render(ref_ptr<dp::GraphicsContext> context, ref_ptr<gpu::ProgramManager> mng, bool routingActive,
53 ScreenBase const & screen)
54{
55 if (HasWidget(gui::WIDGET_RULER))
56 {
57 DrapeGui::GetRulerHelper().ResetTextDirtyFlag();
58 DrapeGui::GetRulerHelper().Update(screen);
59 }
60
61 for (auto & r : m_renderers)
62 {
63 if (routingActive && (r.first == gui::WIDGET_COMPASS || r.first == gui::WIDGET_RULER))
64 continue;
65
66 r.second->Render(context, mng, screen);
67 }
68}
69
70void LayerRenderer::Merge(ref_ptr<LayerRenderer> other)
71{

Callers

nothing calls this directly

Calls 2

ResetTextDirtyFlagMethod · 0.80
UpdateMethod · 0.45

Tested by

no test coverage detected