From bcdc5c98b356d926939b226a3962d97763295d3b Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sat, 18 Dec 2021 19:28:54 +0000 Subject: Window handles UIComponent rendering --- ui/window.cpp | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'ui/window.cpp') 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 #include #include @@ -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::render, uiShader); +} -- cgit v1.2.3