diff options
Diffstat (limited to 'include/components.hpp')
-rw-r--r-- | include/components.hpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/components.hpp b/include/components.hpp index 58f5aea..367b8a3 100644 --- a/include/components.hpp +++ b/include/components.hpp @@ -14,6 +14,8 @@ #include <texture.hpp> #include <events.hpp> +#include <atomic> + /** * @struct Position * @brief Stores the position of an entity on the xy plane. @@ -275,7 +277,11 @@ public: }; class RenderSystem : public entityx::System<RenderSystem> { +private: + std::string loadTexString; + std::atomic<GLuint> loadTexResult; public: + GLuint loadTexture(const std::string& file); void update(entityx::EntityManager &en, entityx::EventManager &ev, entityx::TimeDelta dt) override; }; |