summaryrefslogtreecommitdiff
path: root/ui/window.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ui/window.cpp')
-rw-r--r--ui/window.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/ui/window.cpp b/ui/window.cpp
index d9e0467..cd4a202 100644
--- a/ui/window.cpp
+++ b/ui/window.cpp
@@ -1,5 +1,6 @@
#include "window.h"
-#include "ui/inputHandler.h"
+#include "inputHandler.h"
+#include "uiComponent.h"
#include <GL/glew.h>
#include <optional>
#include <stdexcept>
@@ -73,3 +74,11 @@ Window::refresh(const GameState * gameState) const
swapBuffers();
}
+
+void
+Window::render(const GameState *) const
+{
+ uiShader.use();
+ glDisable(GL_DEPTH_TEST);
+ inputStack.apply<UIComponent>(&UIComponent::render, uiShader);
+}