Load bones, bone indices and weights into model

This commit is contained in:
Camden Dixie O'Brien committed 2025-10-01 13:59:19 +01:00
1 parent 955f606fb5
commit 2e1a604d7b
5 files changed
+145 -74

No files matched your search

+11
View File
@@ -11,13 +11,24 @@ typedef uint16_t index_t;
typedef struct {
vec3_t position;
vec3_t normal;
u16_vec4_t bones;
vec4_t weights;
} vertex_t;
typedef struct {
uint32_t parent;
vec3_t translation;
vec4_t rotation;
vec3_t scale;
} bone_t;
typedef struct {
vertex_t *vertices;
index_t *indices;
bone_t *bones;
size_t vertex_count;
size_t index_count;
size_t bone_count;
} model_t;
model_t model_init(size_t vertex_count, size_t index_count);