summaryrefslogtreecommitdiff
path: root/ui/gameMainSelector.cpp
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.cpp
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.cpp')
-rw-r--r--ui/gameMainSelector.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/ui/gameMainSelector.cpp b/ui/gameMainSelector.cpp
index ff9afb7..a5356ab 100644
--- a/ui/gameMainSelector.cpp
+++ b/ui/gameMainSelector.cpp
@@ -28,6 +28,14 @@ GameMainSelector::render(const UIShader & shader, const Position & parentPos) co
}
}
+void
+GameMainSelector::render(const Shader & shader) const
+{
+ if (target) {
+ target->render(shader);
+ }
+}
+
bool
GameMainSelector::handleInput(const SDL_Event & e, const Position & parentPos)
{
@@ -102,3 +110,8 @@ void
GameMainSelector::Component::render(const UIShader &, const UIComponent::Position &) const
{
}
+
+void
+GameMainSelector::Component::render(const Shader &) const
+{
+}