From 1ea92d1aa4656160fee3059500c405ce4260bce7 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Mon, 19 Oct 2020 12:59:57 +0200 Subject: Fade thumbnail from fallback to the image texture --- include/AsyncImageLoader.hpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/AsyncImageLoader.hpp') 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 #include #include +#include #include #include @@ -19,6 +20,7 @@ namespace QuickMedia { LoadingState loading_state = LoadingState::NOT_LOADED; sf::Texture texture; std::unique_ptr image; // Set in another thread. This should be .reset after loading it into |texture|, to save memory + sf::Clock texture_applied_time; }; class AsyncImageLoader { -- cgit v1.2.3