summaryrefslogtreecommitdiff
path: root/ui/window.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2021-12-18 15:08:45 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2021-12-18 15:08:45 +0000
commitde61720146a1ce0640322dff992462bfbecafdc3 (patch)
tree85caf3c290415b1d7ed6b56341a4be290e69a06a /ui/window.h
parentSingle glContext shared between windows (diff)
downloadilt-de61720146a1ce0640322dff992462bfbecafdc3.tar.bz2
ilt-de61720146a1ce0640322dff992462bfbecafdc3.tar.xz
ilt-de61720146a1ce0640322dff992462bfbecafdc3.zip
Push uiShader into the window class
Diffstat (limited to 'ui/window.h')
-rw-r--r--ui/window.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ui/window.h b/ui/window.h
index 8bfc9c3..97a0253 100644
--- a/ui/window.h
+++ b/ui/window.h
@@ -3,6 +3,7 @@
#include "chronology.hpp"
#include "collection.hpp"
+#include "gfx/gl/uiShader.h"
#include "inputHandler.h" // IWYU pragma: keep
#include "ptr.hpp"
#include <SDL2/SDL.h>
@@ -14,7 +15,7 @@ class GameState;
class Window {
public:
- Window(int width, int height, const std::string & title);
+ Window(size_t width, size_t height, const std::string & title);
virtual ~Window() = default;
NO_COPY(Window);
@@ -34,6 +35,7 @@ protected:
using SDL_WindowPtr = wrapped_ptrt<SDL_Window, SDL_CreateWindow, SDL_DestroyWindow>;
SDL_WindowPtr m_window;
Collection<InputHandler> inputStack;
+ UIShader uiShader;
};
#endif