Inital code for per map layer ImGui contexts

This commit is contained in:
AdenKoperczak 2025-01-04 13:49:31 -05:00
parent e641c0b0e5
commit 6d107f6c2d
7 changed files with 153 additions and 15 deletions

View file

@ -292,6 +292,8 @@ void OverlayLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
auto& settings = context()->settings();
const float pixelRatio = context()->pixel_ratio();
StartImGuiFrame();
p->sweepTimePicked_ = false;
if (radarProductView != nullptr)
@ -457,7 +459,7 @@ void OverlayLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
p->icons_->SetIconVisible(p->mapLogoIcon_,
generalSettings.show_map_logo().GetValue());
DrawLayer::Render(params);
DrawLayer::RenderWithoutImGui(params);
auto mapCopyrights = context()->map_copyrights();
if (mapCopyrights.length() > 0 &&
@ -491,6 +493,8 @@ void OverlayLayer::Render(const QMapLibre::CustomLayerRenderParameters& params)
p->lastFontSize_ = ImGui::GetFontSize();
p->lastColorTableMargins_ = colorTableMargins;
EndImGuiFrame();
SCWX_GL_CHECK_ERROR();
}