aboutsummaryrefslogtreecommitdiffstats
path: root/include/window.hpp
diff options
context:
space:
mode:
authorAndy <drumsetmonkey@gmail.com>2016-10-26 07:32:25 -0400
committerAndy <drumsetmonkey@gmail.com>2016-10-26 07:32:25 -0400
commit8eb1625aea5ccaa07414e699e784440a94277ab0 (patch)
treeb09234eef1f5524c7711096fe61953500d6d5925 /include/window.hpp
parentd7884127950260dd0f1b24aee0bfe64d847f990c (diff)
Scaling work
Diffstat (limited to 'include/window.hpp')
-rw-r--r--include/window.hpp6
1 files changed, 5 insertions, 1 deletions
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 <SDL2/SDL.h>
-class WindowSystem : public entityx::System<WindowSystem> {
+#include <events.hpp>
+
+class WindowSystem : public entityx::System<WindowSystem>, public entityx::Receiver<WindowSystem> {
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_