summaryrefslogtreecommitdiff
path: root/src/animation.h
diff options
context:
space:
mode:
authorOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-06 22:24:52 +1100
committerOmniscient <17525998+omnisci3nce@users.noreply.github.com>2024-04-06 22:24:52 +1100
commitd9f9479694d8a4d74822a876516282329db5ea3d (patch)
treebd52e7fa5fea45f1483cd47d49f980732ff404d3 /src/animation.h
parent113b038b703aeef545e86700afd6dc2095015e84 (diff)
separate pipeline for skinned meshes
Diffstat (limited to 'src/animation.h')
-rw-r--r--src/animation.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/animation.h b/src/animation.h
index 81e150a..18d3ba9 100644
--- a/src/animation.h
+++ b/src/animation.h
@@ -28,6 +28,12 @@ typedef struct keyframes {
size_t count;
} keyframes;
+typedef struct joint {
+ char* name; // optional
+ transform transform_components;
+ mat4 local_transform;
+} joint;
+
typedef struct animation_spline {
f32* timestamps;
size_t n_timestamps;