techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
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);