diff options
| author | tech kaczynski <tk@techkaczynski.dev> | 2026-10-20 07:45:23 +1000 |
|---|---|---|
| committer | tech kaczynski <tk@techkaczynski.dev> | 2026-10-20 07:45:23 +1000 |
| commit | 6bdb9fa5f2214f816b4195922b0b2b85f667e364 (patch) | |
| tree | 7980d4fc7314f33a98bdfddc1ebd331c6c7b5897 /editor.h | |
| parent | bd1268267e1b0cbf6253c992bce0e5224da7fa01 (diff) | |
lots of editor improvements.
Diffstat (limited to 'editor.h')
| -rw-r--r-- | editor.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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); |
