summaryrefslogtreecommitdiff
path: root/ui/gameMainWindow.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-01-02 20:28:24 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2022-01-02 20:28:24 +0000
commit4bf6b8dad9923d6f3687e8ced72a4eda6a56220d (patch)
treea3110d4f7dafae89ace66c5812a77330da53160a /ui/gameMainWindow.h
parentReplace include guard macros with pragma once (diff)
downloadilt-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.h6
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;