diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 20:29:27 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-08-13 20:29:27 +1000 |
commit | 567d384b698151e287e31140709c93f1b92e6db4 (patch) | |
tree | e00975124d3f002a8aaa22e85475d913c6950346 /src/animation.h | |
parent | 13949ca02bcf9fcdfcc48ea7949f617553a260b6 (diff) |
loading joints and animations
Diffstat (limited to 'src/animation.h')
-rw-r--r-- | src/animation.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/animation.h b/src/animation.h index 8bf3940..08ee92a 100644 --- a/src/animation.h +++ b/src/animation.h @@ -3,6 +3,7 @@ #include "darray.h" #include "defines.h" #include "maths_types.h" +#include "mem.h" typedef enum Interpolation { INTERPOLATION_STEP, @@ -46,6 +47,7 @@ typedef u32 JointIdx; typedef struct Armature { char* label; + arena arena; Joint_darray* joints; } Armature; @@ -79,6 +81,10 @@ typedef struct AnimationClip { AnimationSampler* scale; AnimationSampler* weights; } AnimationClip; +#ifndef TYPED_ANIM_CLIP_ARRAY +KITC_DECL_TYPED_ARRAY(AnimationClip); +#define TYPED_ANIM_CLIP_ARRAY +#endif typedef struct SkinnedAnimation { Mat4* joint_matrices; |