From 6bdb9fa5f2214f816b4195922b0b2b85f667e364 Mon Sep 17 00:00:00 2001 From: tech kaczynski Date: Tue, 20 Oct 2026 07:45:23 +1000 Subject: lots of editor improvements. --- editor.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'editor.h') diff --git a/editor.h b/editor.h index 78a8850..a63ccbf 100644 --- a/editor.h +++ b/editor.h @@ -82,6 +82,7 @@ typedef struct { int sel_cnt; f32 grid_sz; + int rotation_snap; u64 physics_pid; int physics_body, physics_shape; @@ -97,8 +98,17 @@ typedef struct { int move_axis; bool move_plane; Vec3 move_snap_origin; + + int rotate_axis; + bool rotate_group; + Vec3 rotate_pivot; Quaternion move_rotation; + int scale_axis; + bool scale_group; + Vec3 scale_pivot; + f32 scale_factor; + struct { EditorPanelType type; Rect bounds; @@ -123,6 +133,7 @@ void editor_update(void); void editor_select(void); void editor_move(void); void editor_rotate(void); +void editor_scale(void); /* draw */ void editor_draw_ui(void); -- cgit v1.2.3