techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authortech kaczynski <tk@techkaczynski.dev>2026-10-20 07:45:23 +1000
committertech kaczynski <tk@techkaczynski.dev>2026-10-20 07:45:23 +1000
commit6bdb9fa5f2214f816b4195922b0b2b85f667e364 (patch)
tree7980d4fc7314f33a98bdfddc1ebd331c6c7b5897 /editor.h
parentbd1268267e1b0cbf6253c992bce0e5224da7fa01 (diff)
lots of editor improvements.
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h11
1 files changed, 11 insertions, 0 deletions
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);