diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-05 01:59:16 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2023-03-05 01:59:16 +0000 |
commit | d4c073a18adaed73973f34c6c39fc15664d9211d (patch) | |
tree | 44536af3af0284ab75eae79ef81a5e4452019269 /assetFactory/faceController.h | |
parent | Add helper operator to perform vec3*mat4 and perspective divide (diff) | |
parent | Remove old hard coded asset factory test, run entirely from XML load and rend... (diff) | |
download | ilt-d4c073a18adaed73973f34c6c39fc15664d9211d.tar.bz2 ilt-d4c073a18adaed73973f34c6c39fc15664d9211d.tar.xz ilt-d4c073a18adaed73973f34c6c39fc15664d9211d.zip |
Merge branch 'model-factory'
Diffstat (limited to 'assetFactory/faceController.h')
-rw-r--r-- | assetFactory/faceController.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/assetFactory/faceController.h b/assetFactory/faceController.h new file mode 100644 index 0000000..10a226a --- /dev/null +++ b/assetFactory/faceController.h @@ -0,0 +1,31 @@ +#pragma once + +#include "modelFactoryMesh_fwd.h" +#include "mutation.h" +#include "persistence.h" +#include "shape.h" +#include "style.h" +#include <map> +#include <string> + +class FaceController : public Mutation, public Style, public Persistence::Persistable { +public: + using FaceControllers = std::map<std::string, std::unique_ptr<FaceController>>; + + void apply(ModelFactoryMesh & mesh, const Style::StyleStack & parents, const std::string & name, + Shape::CreatedFaces & faces) const; + + std::string id; + std::string type; + bool smooth {false}; + FaceControllers faceControllers; + +private: + friend Persistence::SelectionPtrBase<std::unique_ptr<FaceController>>; + bool persist(Persistence::PersistenceStore & store) override; + std::string + getId() const override + { + return {}; + }; +}; |