diff options
Diffstat (limited to 'include/window.hpp')
-rw-r--r-- | include/window.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/include/window.hpp b/include/window.hpp index d53a2bf..36618e5 100644 --- a/include/window.hpp +++ b/include/window.hpp @@ -23,22 +23,24 @@ private: /** * SDL's object for the window. */ - SDL_Window *window; + static SDL_Window *window; /** * An OpenGL context, created when OpenGL is set up for use. */ - SDL_GLContext glContext; + static SDL_GLContext glContext; public: WindowSystem(void); - void die(void); + static void die(void); void configure(entityx::EventManager &ev); void update(entityx::EntityManager &en, entityx::EventManager &ev, entityx::TimeDelta dt) override { (void)en; (void)ev; (void)dt; } - void render(void); + + static void render(void); + void receive(const WindowResizeEvent&); void receive(const ScreenshotEvent&); }; |