forked from Green-Sky/tomato
add avatar texture handling
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
|
||||
#include <solanaceae/contact/contact_model3.hpp>
|
||||
|
||||
#include "./image_loader.hpp"
|
||||
#include "./texture_cache.hpp"
|
||||
|
||||
#include <optional>
|
||||
@ -9,8 +10,10 @@
|
||||
class ToxAvatarLoader {
|
||||
Contact3Registry& _cr;
|
||||
|
||||
std::vector<std::unique_ptr<ImageLoaderI>> _image_loaders;
|
||||
|
||||
public:
|
||||
ToxAvatarLoader(Contact3Registry& cr) : _cr(cr) {}
|
||||
ToxAvatarLoader(Contact3Registry& cr);
|
||||
std::optional<TextureEntry> load(TextureUploaderI& tu, Contact3 c);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user