fix types in Mesh struct, adjust name

This commit is contained in:
Matthew 2025-11-22 19:01:35 +11:00
parent 443329b2dc
commit b3e2779c23

View File

@ -100,8 +100,8 @@ struct Mesh
{
Vertex[] vtx;
u32[] idx;
u64 start;
u64 length;
u32 offset;
u32 length;
u32 mat_id;
}
@ -375,7 +375,7 @@ LoadGLTF(Arena* arena, string file_name)
model.vtx_buf = Alloc!(Vertex)(vtx_count);
model.meshes = Alloc!(Mesh)(primitive_count);
model.mats = Alloc!(Material)(data.materials_count+1);
model.tex = Alloc!(ImageData)(data.textures_count+1);
model.tex = Alloc!(ImageData)(data.textures_count+1);
model.mats[0] = DEFAULT_MATERIAL;