summaryrefslogtreecommitdiff
path: root/assetFactory/textureFragment.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-04-10 14:46:18 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2023-04-10 14:46:18 +0100
commit989b10986f1626d1a50fceb8a33174108c03da93 (patch)
treeda7c1a18abb5290079328872f311b2dbea60d618 /assetFactory/textureFragment.h
parenttest-assetFactory depends on all resource files (diff)
downloadilt-989b10986f1626d1a50fceb8a33174108c03da93.tar.bz2
ilt-989b10986f1626d1a50fceb8a33174108c03da93.tar.xz
ilt-989b10986f1626d1a50fceb8a33174108c03da93.zip
Load texture fragment images as we go, make the image a member
Diffstat (limited to 'assetFactory/textureFragment.h')
-rw-r--r--assetFactory/textureFragment.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/assetFactory/textureFragment.h b/assetFactory/textureFragment.h
index 52f2591..d03affd 100644
--- a/assetFactory/textureFragment.h
+++ b/assetFactory/textureFragment.h
@@ -1,5 +1,6 @@
#pragma once
+#include "gfx/image.h"
#include "persistence.h"
#include "stdTypeDefs.hpp"
@@ -7,8 +8,10 @@ class TextureFragment : public Persistence::Persistable, public StdTypeDefs<Text
public:
std::string id;
std::string path;
+ std::unique_ptr<Image> image;
private:
friend Persistence::SelectionPtrBase<Ptr>;
bool persist(Persistence::PersistenceStore & store) override;
+ void postLoad() override;
};