summaryrefslogtreecommitdiff
path: root/src/editor/editor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/editor/editor.h')
-rw-r--r--src/editor/editor.h17
1 files changed, 14 insertions, 3 deletions
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;