#include "textureFragment.h" #include "resource.h" #include bool TextureFragment::persist(Persistence::PersistenceStore & store) { return STORE_TYPE && STORE_MEMBER(id) && STORE_MEMBER(path); } void TextureFragment::postLoad() { image = Worker::addWork([this]() { return std::make_unique(Resource::mapPath(path), STBI_rgb_alpha); }); }