From 2ef7272e6817cf61828a9d80ca239092573505c7 Mon Sep 17 00:00:00 2001 From: Dan Goodliffe Date: Sun, 2 Oct 2022 18:19:44 +0100 Subject: Make Window shader available to clients --- ui/window.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'ui/window.h') 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 #include +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_WindowPtr m_window; -- cgit v1.2.3