diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 01:35:15 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-12-11 01:35:15 +0100 |
commit | 067a3f3ae0c1ab94ace005897673a484e165b31b (patch) | |
tree | b39d7d3b1e3e4240adff8ceedf4fd10c083b979f /editor/wall-editor.hpp | |
parent | 9aba8139b728d3b25f5763ddc134b09e5a2e1948 (diff) |
wipshit
Diffstat (limited to 'editor/wall-editor.hpp')
-rw-r--r-- | editor/wall-editor.hpp | 25 |
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 |