diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-10-19 12:59:57 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-10-19 12:59:57 +0200 |
commit | 1ea92d1aa4656160fee3059500c405ce4260bce7 (patch) | |
tree | 2446d34137a79d1901cb8c563d397662b49d7443 /include | |
parent | b233f24fe103a745eb6487e236b7cb08269a6cb3 (diff) |
Fade thumbnail from fallback to the image texture
Diffstat (limited to 'include')
-rw-r--r-- | include/AsyncImageLoader.hpp | 2 |
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 { |