summaryrefslogtreecommitdiff
path: root/ui/gameMainSelector.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-10-10 20:49:43 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-10-10 20:49:43 +0100
commit27a3f3365c6a46c5b85f5be676b53a758b35a73e (patch)
tree618f40ffe1b38ce6bc13fc662c1b3cc8b512cbcf /ui/gameMainSelector.h
parentAdd a rather dumb builder for joining nodes (diff)
downloadilt-27a3f3365c6a46c5b85f5be676b53a758b35a73e.tar.bz2
ilt-27a3f3365c6a46c5b85f5be676b53a758b35a73e.tar.xz
ilt-27a3f3365c6a46c5b85f5be676b53a758b35a73e.zip
GameMainSelector provides world overlay and renders its target
Diffstat (limited to 'ui/gameMainSelector.h')
-rw-r--r--ui/gameMainSelector.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/gameMainSelector.h b/ui/gameMainSelector.h
index 04f2fd7..38d8eb1 100644
--- a/ui/gameMainSelector.h
+++ b/ui/gameMainSelector.h
@@ -3,6 +3,7 @@
#include "SDL_events.h"
#include "special_members.hpp"
#include "uiComponent.h"
+#include "worldOverlay.h"
#include <glm/glm.hpp>
#include <memory>
#include <string>
@@ -10,7 +11,7 @@ class Ray;
class UIShader;
class Camera;
-class GameMainSelector : public UIComponent {
+class GameMainSelector : public UIComponent, public WorldOverlay {
public:
class Component {
public:
@@ -20,11 +21,13 @@ public:
virtual bool move(const SDL_MouseMotionEvent &, const Ray &);
virtual bool handleInput(const SDL_Event &, const Position & pos);
virtual void render(const UIShader & shader, const Position & pos) const;
+ virtual void render(const Shader &) const;
};
GameMainSelector(const Camera * c, glm::vec2 size);
void render(const UIShader & shader, const Position & pos) const override;
+ void render(const Shader & shader) const override;
bool handleInput(const SDL_Event & e, const Position &) override;