Import .glb model file with animation

- improve movement controls
- TODO: allow more than one model, instance, and animation
This commit is contained in:
var
2026-04-19 21:31:31 -05:00
parent 565c4e0e6f
commit 58289aa6b2
10 changed files with 9256 additions and 48 deletions

View File

@@ -1,3 +1,22 @@
#pragma once
#include "GL/glew.h"
#include "cglm/cglm.h"
#include "shape.h"
typedef struct
{
void *data;
void *skin;
mat4 *jointMatrices;
GLuint *vbos;
GLuint vao;
GLuint ebo;
int vboCount;
int indexCount;
ShapeInstance instance;
} Model;
Model Model_LoadGltf(char *path);
void Model_Free(Model model);
Shape *Model_ReadObjFile(const char *path);