summaryrefslogtreecommitdiff
path: root/assetFactory
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-12 01:05:18 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-12 19:43:14 +0000
commit0ee9b8c6036899f95dfd54f151cb60a03645f87a (patch)
tree9550f45043a1864a32ddd3b7d9b600fdeb134c07 /assetFactory
parentSupport loading references to texture fragments (diff)
downloadilt-0ee9b8c6036899f95dfd54f151cb60a03645f87a.tar.bz2
ilt-0ee9b8c6036899f95dfd54f151cb60a03645f87a.tar.xz
ilt-0ee9b8c6036899f95dfd54f151cb60a03645f87a.zip
Support loading texture references into faces
Diffstat (limited to 'assetFactory')
-rw-r--r--assetFactory/style.cpp2
-rw-r--r--assetFactory/style.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/assetFactory/style.cpp b/assetFactory/style.cpp
index fc5c34e..5303d96 100644
--- a/assetFactory/style.cpp
+++ b/assetFactory/style.cpp
@@ -42,5 +42,5 @@ Style::persist(Persistence::PersistenceStore & store)
}
};
- return STORE_HELPER(colour, ColourParser);
+ return STORE_HELPER(colour, ColourParser) && STORE_MEMBER(texture) && STORE_MEMBER(textureRotation);
}
diff --git a/assetFactory/style.h b/assetFactory/style.h
index e8fd012..84e5dab 100644
--- a/assetFactory/style.h
+++ b/assetFactory/style.h
@@ -28,6 +28,8 @@ public:
}
ColourAlpha colour {};
+ std::string texture;
+ std::string textureRotation; // Multiples of 90deg, no int/enum support
protected:
bool persist(Persistence::PersistenceStore & store);