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

@@ -5,6 +5,7 @@
#include "cglm/cglm.h"
#include "camera.h"
#include "shape.h"
#include "model.h"
typedef struct
{
@@ -24,9 +25,11 @@ typedef struct
SDL_GLContext *glContext;
GLuint textureId;
int shaderProgramId;
int modelShaderProgramId;
Camera camera;
Shape **shapes;
int numShapes;
Model testModel;
mat4 projMatrix;
mat4 viewMatrix;
} GameState;