summaryrefslogtreecommitdiff
path: root/ui/window.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/window.h')
-rw-r--r--ui/window.h3
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;