summaryrefslogtreecommitdiffhomepage
path: root/editor/wall-editor.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'editor/wall-editor.hpp')
-rw-r--r--editor/wall-editor.hpp25
1 files changed, 25 insertions, 0 deletions
diff --git a/editor/wall-editor.hpp b/editor/wall-editor.hpp
new file mode 100644
index 00000000..87cfa8f7
--- /dev/null
+++ b/editor/wall-editor.hpp
@@ -0,0 +1,25 @@
+#pragma once
+#include "src/rotation.hpp"
+#include <memory>
+#include <map>
+
+namespace floormat {
+
+class wall_atlas;
+
+class wall_editor
+{
+ std::map<StringView, std::shared_ptr<wall_atlas>> _atlases;
+ std::shared_ptr<wall_atlas> _selected_atlas;
+ rotation _r = rotation::N;
+
+public:
+
+ wall_editor();
+
+ enum rotation rotation() const { return _r; }
+ void set_rotation(enum rotation r);
+ void toggle_rotation();
+};
+
+} // namespace floormat