tomato/src/tox_avatar_loader.hpp

20 lines
381 B
C++
Raw Normal View History

2023-08-01 13:21:16 +02:00
#pragma once
#include <solanaceae/contact/contact_model3.hpp>
2023-08-01 18:25:56 +02:00
#include "./image_loader.hpp"
2023-08-01 13:21:16 +02:00
#include "./texture_cache.hpp"
#include <optional>
class ToxAvatarLoader {
Contact3Registry& _cr;
2023-08-01 18:25:56 +02:00
std::vector<std::unique_ptr<ImageLoaderI>> _image_loaders;
2023-08-01 13:21:16 +02:00
public:
2023-08-01 18:25:56 +02:00
ToxAvatarLoader(Contact3Registry& cr);
2023-08-01 13:21:16 +02:00
std::optional<TextureEntry> load(TextureUploaderI& tu, Contact3 c);
};