diff options
Diffstat (limited to 'include/systems/render.hpp')
-rw-r--r-- | include/systems/render.hpp | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/systems/render.hpp b/include/systems/render.hpp new file mode 100644 index 0000000..012c6fd --- /dev/null +++ b/include/systems/render.hpp @@ -0,0 +1,23 @@ +#ifndef SYSTEM_RENDER_HPP_ +#define SYSTEM_RENDER_HPP_ + +#include <entityx/entityx.h> + +#include <texture.hpp> + +#include <string> + +class RenderSystem : public entityx::System<RenderSystem> { +private: + static std::string loadTexString; + static Texture loadTexResult; + +public: + static Texture loadTexture(const std::string& file); + static void render(void); + + void update(entityx::EntityManager &en, entityx::EventManager &ev, entityx::TimeDelta dt) override; +}; + + +#endif // SYSTEM_RENDER_HPP_ |