From 4bf6b8dad9923d6f3687e8ced72a4eda6a56220d Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Jan 2022 20:28:24 +0000 Subject: No need to pass GameState around, it has a global pointer --- ui/window.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'ui/window.h') diff --git a/ui/window.h b/ui/window.h index 49cdf45..b6ade60 100644 --- a/ui/window.h +++ b/ui/window.h @@ -10,8 +10,6 @@ #include #include -class GameState; - class Window { public: Window(size_t width, size_t height, const std::string & title); @@ -21,7 +19,7 @@ public: NO_MOVE(Window); virtual void tick(TickDuration elapsed) = 0; - void refresh(const GameState *) const; + void refresh() const; bool handleInput(const SDL_Event & e); void clear(float r, float g, float b, float a) const; @@ -29,7 +27,7 @@ public: protected: [[nodiscard]] SDL_GLContext glContext() const; - virtual void render(const GameState *) const; + virtual void render() const; using SDL_WindowPtr = wrapped_ptrt; SDL_WindowPtr m_window; -- cgit v1.2.3