summaryrefslogtreecommitdiff
path: root/assetFactory/faceController.h
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2023-02-15 02:26:06 +0000
committerDan Goodliffe <dan.goodliffe@octal.co.uk>2023-02-15 11:34:11 +0000
commit715d4879fdd096ac82367984fdb22117d48737a4 (patch)
tree576b0553b10795bb51384ba4c47269d4226bdca6 /assetFactory/faceController.h
parentAdd OpenMeshCore library (diff)
downloadilt-715d4879fdd096ac82367984fdb22117d48737a4.tar.bz2
ilt-715d4879fdd096ac82367984fdb22117d48737a4.tar.xz
ilt-715d4879fdd096ac82367984fdb22117d48737a4.zip
First cut of the model factory and the hardcoded Brush 47 model
Requires temporary change to the fragment shader to hardcode some visible colour to the model
Diffstat (limited to 'assetFactory/faceController.h')
-rw-r--r--assetFactory/faceController.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/assetFactory/faceController.h b/assetFactory/faceController.h
new file mode 100644
index 0000000..64c33f3
--- /dev/null
+++ b/assetFactory/faceController.h
@@ -0,0 +1,20 @@
+#pragma once
+
+#include "assetFactoryConfig_fwd.h"
+#include "mutation.h"
+#include "shape.h"
+#include <map>
+#include <string>
+
+class FaceController : public Mutation {
+public:
+ using FaceControllers = std::map<std::string, FaceController>;
+
+ void apply(ModelFactoryMesh & mesh, const std::string & name, Shape::CreatedFaces & faces) const;
+
+ std::string id;
+ std::string colour;
+ std::string type;
+ bool smooth {false};
+ FaceControllers faceControllers;
+};