#pragma once #include #include #include #include "./image_loader.hpp" #include "./texture_cache.hpp" #include class ToxAvatarLoader { ContactStore4I& _cs; ObjectStore2& _os; std::vector> _image_loaders; ByteSpanWithOwnership loadDataFromObj(Contact4 cv); ByteSpanWithOwnership loadData(Contact4 cv); public: ToxAvatarLoader(ContactStore4I& cs, ObjectStore2& os); TextureLoaderResult load(TextureUploaderI& tu, Contact4 c); };