actor cleanup

This commit is contained in:
2025-01-18 18:15:15 -06:00
parent aa38fd2c19
commit a142b6d1f4
11 changed files with 179 additions and 269 deletions

View File

@@ -12,6 +12,7 @@ typedef struct transform {
HMM_Mat4 cache;
HMM_Mat4 gcache;
int dirty;
JSValue self;
struct transform *parent;
JSValue jsparent;
struct transform **children;
@@ -19,6 +20,8 @@ typedef struct transform {
JSValue change_hook;
} transform;
void clean_all();
transform *make_transform();
void transform_free(JSRuntime *rt,transform *t);