summaryrefslogtreecommitdiff
path: root/assetFactory/style.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-03-12 01:29:38 +0000
committerDan Goodliffe <dan@randomdan.homeip.net>2023-03-12 19:43:14 +0000
commit0d5b57f31e17b8e46979d8c29b5a3205fbdbd44b (patch)
treea57e81a59d67c599f1253a16459d7dee1ec3fa1f /assetFactory/style.h
parentSupport loading texture references into faces (diff)
downloadilt-0d5b57f31e17b8e46979d8c29b5a3205fbdbd44b.tar.bz2
ilt-0d5b57f31e17b8e46979d8c29b5a3205fbdbd44b.tar.xz
ilt-0d5b57f31e17b8e46979d8c29b5a3205fbdbd44b.zip
Dedupe looking up the style stack for colour
Diffstat (limited to 'assetFactory/style.h')
-rw-r--r--assetFactory/style.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/assetFactory/style.h b/assetFactory/style.h
index 84e5dab..8c64276 100644
--- a/assetFactory/style.h
+++ b/assetFactory/style.h
@@ -27,6 +27,8 @@ public:
return {};
}
+ static std::optional<std::reference_wrapper<const ColourAlpha>> getColour(const StyleStack & parents);
+
ColourAlpha colour {};
std::string texture;
std::string textureRotation; // Multiples of 90deg, no int/enum support