| 50 | } |
| 51 | |
| 52 | void 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 | |
| 70 | void LayerRenderer::Merge(ref_ptr<LayerRenderer> other) |
| 71 | { |
nothing calls this directly
no test coverage detected