diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-01-02 20:28:24 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-01-02 20:28:24 +0000 |
commit | 4bf6b8dad9923d6f3687e8ced72a4eda6a56220d (patch) | |
tree | a3110d4f7dafae89ace66c5812a77330da53160a /ui/gameMainWindow.h | |
parent | Replace include guard macros with pragma once (diff) | |
download | ilt-4bf6b8dad9923d6f3687e8ced72a4eda6a56220d.tar.bz2 ilt-4bf6b8dad9923d6f3687e8ced72a4eda6a56220d.tar.xz ilt-4bf6b8dad9923d6f3687e8ced72a4eda6a56220d.zip |
No need to pass GameState around, it has a global pointer
Diffstat (limited to 'ui/gameMainWindow.h')
-rw-r--r-- | ui/gameMainWindow.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ui/gameMainWindow.h b/ui/gameMainWindow.h index e26ad2d..68ad7ad 100644 --- a/ui/gameMainWindow.h +++ b/ui/gameMainWindow.h @@ -6,15 +6,13 @@ #include "window.h" #include <cstddef> -class GameState; - class GameMainWindow : public Window { public: - GameMainWindow(size_t w, size_t h, const GameState *); + GameMainWindow(size_t w, size_t h); void tick(TickDuration) override; - void render(const GameState * gameState) const override; + void render() const override; private: Shader shader; |