aboutsummaryrefslogtreecommitdiffstats
path: root/include/window.hpp
blob: b642835abc8f96e29d51314019cf753d90e4417a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef WINDOW_HPP_
#define WINDOW_HPP_

#include <entityx/entityx.h>

#include <SDL2/SDL.h>

class WindowSystem : public entityx::System<WindowSystem> {
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_