techkaczynski.dev / code

summaryrefslogtreecommitdiff
path: root/editor.h
diff options
context:
space:
mode:
authortech kaczynski <tk@techkaczynski.dev>2026-10-24 14:35:19 +1000
committertech kaczynski <tk@techkaczynski.dev>2026-10-24 14:35:19 +1000
commit6fa680c739fcf9cf61de68e903976532ce9639f3 (patch)
tree7d9e9e9e9652232167de0aed2d5ae309384f56c1 /editor.h
parent038cb9646b920936f8f497f9a4ee5b873853424e (diff)
lots of work done to scene hierarchy, added support for reparenting by dragging elements around. Things function much more intuitively now.
Diffstat (limited to 'editor.h')
-rw-r--r--editor.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/editor.h b/editor.h
index a566072..69a7c90 100644
--- a/editor.h
+++ b/editor.h
@@ -7,6 +7,7 @@
typedef enum {
ED_ACTION_TRANSFORM,
+ ED_ACTION_REPARENT,
ED_ACTION_CREATE,
ED_ACTION_DELETE,
ED_ACTION_DUPLICATE,
@@ -29,6 +30,12 @@ typedef union {
} stored;
struct {
+ u64 parent, prev, next; /* PIDs */
+ Vec3 pos, scale;
+ Quaternion rot;
+ } reparent;
+
+ struct {
char *name;
} rename;