Files
Sandbox/src/model.h
var 58289aa6b2 Import .glb model file with animation
- improve movement controls
- TODO: allow more than one model, instance, and animation
2026-04-19 21:31:31 -05:00

23 lines
359 B
C

#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);