From 2d6bf0f6b904ed331b5cb7aaab8855077ae9ce28 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Oct 2022 18:21:38 +0100 Subject: Add WorldOverlay concept Allows rendering in the world view objects which are not (yet?) part of that world --- ui/window.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ui/window.cpp') diff --git a/ui/window.cpp b/ui/window.cpp index 9ecc88c..3569915 100644 --- a/ui/window.cpp +++ b/ui/window.cpp @@ -1,5 +1,6 @@ #include "window.h" #include "uiComponent.h" +#include "worldOverlay.h" #include #include #include @@ -90,6 +91,7 @@ Window::refresh() const void Window::render() const { + uiComponents.apply(&WorldOverlay::render, getShader()); glDisable(GL_DEPTH_TEST); uiComponents.apply(&UIComponent::render, uiShader, UIComponent::Position {}); } -- cgit v1.2.3