From 8eb1625aea5ccaa07414e699e784440a94277ab0 Mon Sep 17 00:00:00 2001 From: Andy Date: Wed, 26 Oct 2016 07:32:25 -0400 Subject: Scaling work --- include/window.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'include/window.hpp') diff --git a/include/window.hpp b/include/window.hpp index d168a54..364ac8f 100644 --- a/include/window.hpp +++ b/include/window.hpp @@ -5,7 +5,9 @@ #include -class WindowSystem : public entityx::System { +#include + +class WindowSystem : public entityx::System, public entityx::Receiver { private: SDL_Window *window; SDL_GLContext glContext; @@ -15,7 +17,9 @@ public: void die(void); + void configure(entityx::EventManager &ev); void update(entityx::EntityManager &en, entityx::EventManager &ev, entityx::TimeDelta dt) override; + void receive(const WindowResizeEvent&); }; #endif // WINDOW_HPP_ -- cgit v1.2.3