mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 17:10:05 +00:00
Inital code for per map layer ImGui contexts
This commit is contained in:
parent
e641c0b0e5
commit
6d107f6c2d
7 changed files with 153 additions and 15 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue