aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/AsyncImageLoader.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/AsyncImageLoader.hpp b/include/AsyncImageLoader.hpp
index fa32971..0b3f4bf 100644
--- a/include/AsyncImageLoader.hpp
+++ b/include/AsyncImageLoader.hpp
@@ -3,6 +3,7 @@
#include <string>
#include <SFML/System/Vector2.hpp>
#include <SFML/Graphics/Texture.hpp>
+#include <SFML/System/Clock.hpp>
#include <memory>
#include <thread>
@@ -19,6 +20,7 @@ namespace QuickMedia {
LoadingState loading_state = LoadingState::NOT_LOADED;
sf::Texture texture;
std::unique_ptr<sf::Image> image; // Set in another thread. This should be .reset after loading it into |texture|, to save memory
+ sf::Clock texture_applied_time;
};
class AsyncImageLoader {