From cb6957e78683cbe4887dac80c1ff23dc9523c4cf Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 6 Apr 2025 12:41:58 +0100 Subject: Drop WindowContent::render const ImGui promotes "doing things immediately" and this const makes that very awkward. --- ui/gameMainWindow.cpp | 2 +- ui/gameMainWindow.h | 2 +- ui/windowContent.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ui/gameMainWindow.cpp b/ui/gameMainWindow.cpp index cc74f66..afb7a2e 100644 --- a/ui/gameMainWindow.cpp +++ b/ui/gameMainWindow.cpp @@ -85,7 +85,7 @@ GameMainWindow::handleInput(const SDL_Event & event) } void -GameMainWindow::render() const +GameMainWindow::render() { SceneRenderer::render(*this); glEnable(GL_BLEND); diff --git a/ui/gameMainWindow.h b/ui/gameMainWindow.h index b0f1592..14e099c 100644 --- a/ui/gameMainWindow.h +++ b/ui/gameMainWindow.h @@ -14,7 +14,7 @@ public: NO_COPY(GameMainWindow); void tick(TickDuration) override; - void render() const override; + void render() override; private: bool handleInput(const SDL_Event &) override; diff --git a/ui/windowContent.h b/ui/windowContent.h index 762d1cc..34cbea3 100644 --- a/ui/windowContent.h +++ b/ui/windowContent.h @@ -14,7 +14,7 @@ public: NO_COPY(WindowContent); virtual void tick(TickDuration); - virtual void render() const = 0; + virtual void render() = 0; virtual bool handleInput(const SDL_Event & e); protected: -- cgit v1.2.3