summaryrefslogtreecommitdiff
path: root/ui/window.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan.goodliffe@octal.co.uk>2022-10-31 09:12:27 +0000
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2022-10-31 09:12:27 +0000
commit377bb9207385bd29fc8084e4d2e51aba27c7f236 (patch)
tree81270b72b9d8915f0d59326d01dad1ae9b352bdf /ui/window.h
parentSetting texture unit when binding UI components (diff)
downloadilt-377bb9207385bd29fc8084e4d2e51aba27c7f236.tar.bz2
ilt-377bb9207385bd29fc8084e4d2e51aba27c7f236.tar.xz
ilt-377bb9207385bd29fc8084e4d2e51aba27c7f236.zip
Save window size as a member variable
Diffstat (limited to 'ui/window.h')
-rw-r--r--ui/window.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/window.h b/ui/window.h
index f808588..dc3c528 100644
--- a/ui/window.h
+++ b/ui/window.h
@@ -33,6 +33,7 @@ protected:
virtual const Shader & getShader() const = 0;
using SDL_WindowPtr = wrapped_ptrt<SDL_Window, SDL_CreateWindow, SDL_DestroyWindow>;
+ const glm::ivec2 size;
SDL_WindowPtr m_window;
Collection<UIComponent> uiComponents;
UIShader uiShader;