aboutsummaryrefslogtreecommitdiff
path: root/src/tool/mod.rs
diff options
context:
space:
mode:
authorArne Dußin2020-11-20 23:41:46 +0100
committerArne Dußin2020-11-20 23:41:46 +0100
commitbff1955c38480f2dffd0a10c16ef46dc11320752 (patch)
treee69403752aa05f22b5474ef07997092c65dc694e /src/tool/mod.rs
parentd6a0708b995b6c0e12ed8890c678c180f859de51 (diff)
downloadgraf_karto-bff1955c38480f2dffd0a10c16ef46dc11320752.tar.gz
graf_karto-bff1955c38480f2dffd0a10c16ef46dc11320752.zip
Add unfinished polygon room tool
When adding the polygon room tool, a problem with drawing polygons arised. Drawing a simple, but nonregular polygon is not something that is supported by raylib, so further additions to the math library are needed.
Diffstat (limited to 'src/tool/mod.rs')
-rw-r--r--src/tool/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tool/mod.rs b/src/tool/mod.rs
index e528b8f..f503d2b 100644
--- a/src/tool/mod.rs
+++ b/src/tool/mod.rs
@@ -1,10 +1,12 @@
pub mod deletion_tool;
pub mod icon_tool;
+pub mod polygon_room_tool;
pub mod room_tool;
pub mod wall_tool;
pub use deletion_tool::DeletionTool;
pub use icon_tool::IconTool;
+pub use polygon_room_tool::PolygonRoomTool;
pub use room_tool::RoomTool;
pub use wall_tool::WallTool;
@@ -18,6 +20,7 @@ use raylib::RaylibHandle;
#[repr(u8)]
pub enum ToolType {
RoomTool,
+ PolygonRoomTool,
WallTool,
IconTool,
DeletionTool,