From b19265bfa91e55c564b75aadcabd212ac89cf349 Mon Sep 17 00:00:00 2001 From: Clyne Sullivan Date: Mon, 10 Oct 2016 19:17:19 -0500 Subject: the revival, entityx --- include/window.hpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 include/window.hpp (limited to 'include/window.hpp') diff --git a/include/window.hpp b/include/window.hpp new file mode 100644 index 0000000..b642835 --- /dev/null +++ b/include/window.hpp @@ -0,0 +1,20 @@ +#ifndef WINDOW_HPP_ +#define WINDOW_HPP_ + +#include + +#include + +class WindowSystem : public entityx::System { +private: + SDL_Window *window; + SDL_GLContext glContext; + +public: + WindowSystem(void); + ~WindowSystem(void); + + void update(entityx::EntityManager &en, entityx::EventManager &ev, entityx::TimeDelta dt) override; +}; + +#endif // WINDOW_HPP_ -- cgit v1.2.3