- improve movement controls - TODO: allow more than one model, instance, and animation
23 lines
359 B
C
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);
|