diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-02 18:19:44 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2022-10-02 19:29:39 +0100 |
commit | 2ef7272e6817cf61828a9d80ca239092573505c7 (patch) | |
tree | 08833106b9b2e0e75846aef742a600db681187b3 /ui/window.h | |
parent | Remove redundant null check (diff) | |
download | ilt-2ef7272e6817cf61828a9d80ca239092573505c7.tar.bz2 ilt-2ef7272e6817cf61828a9d80ca239092573505c7.tar.xz ilt-2ef7272e6817cf61828a9d80ca239092573505c7.zip |
Make Window shader available to clients
Diffstat (limited to 'ui/window.h')
-rw-r--r-- | ui/window.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ui/window.h b/ui/window.h index b6ade60..f808588 100644 --- a/ui/window.h +++ b/ui/window.h @@ -10,6 +10,8 @@ #include <special_members.hpp>
#include <string>
+class Shader;
+
class Window {
public:
Window(size_t width, size_t height, const std::string & title);
@@ -28,6 +30,7 @@ public: protected:
[[nodiscard]] SDL_GLContext glContext() const;
virtual void render() const;
+ virtual const Shader & getShader() const = 0;
using SDL_WindowPtr = wrapped_ptrt<SDL_Window, SDL_CreateWindow, SDL_DestroyWindow>;
SDL_WindowPtr m_window;
|