From bff1955c38480f2dffd0a10c16ef46dc11320752 Mon Sep 17 00:00:00 2001 From: Arne Dußin Date: Fri, 20 Nov 2020 23:41:46 +0100 Subject: 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. --- src/tool/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/tool/mod.rs') 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, -- cgit v1.2.3-70-g09d2