From a266df321b19558764565f3b433aa997004a5f42 Mon Sep 17 00:00:00 2001 From: aura Date: Thu, 13 Aug 2026 00:51:36 +0200 Subject: path drawing more work --- src/editor/editor.h | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/editor/editor.h') diff --git a/src/editor/editor.h b/src/editor/editor.h index 682ccc8..642138f 100644 --- a/src/editor/editor.h +++ b/src/editor/editor.h @@ -19,13 +19,20 @@ enum EditorTools_t { enum EditorWallShape_t { EDITOR_WALLSHAPE_LINE = 0, - EDITOR_WALLSHAPE_POLYGON = 1, - EDITOR_WALLSHAPE_PATH = 2 + EDITOR_WALLSHAPE_POLYGON, + EDITOR_WALLSHAPE_PATH, + EDITOR_WALLSHAPE_MAX +}; + +constexpr const char* EDITOR_WALLSHAPE_NAMES[] = { + "line", + "polygon", + "path" }; enum EditorPolyShape_t { EDITOR_POLYSHAPE_DRAG = 0, - EDITOR_POLYSHAPE_PATH = 1 + EDITOR_POLYSHAPE_PATH }; enum EditorSelectType_t { @@ -293,6 +300,10 @@ struct GUI_EDITOR_2DVIEW : GUI_VIEW { VEC2 poly_end; VEC3 pending_object_pos; + VEC3 draw_lastpos; + VEC3 draw_startpos; + U8 draw_started; + I32 pending_wall_undo_idx; I32 pending_object_undo_idx; U8 pending_object_undo_type; -- cgit v1.2.3