Import .glb model file with animation
- improve movement controls - TODO: allow more than one model, instance, and animation
This commit is contained in:
19
src/model.h
19
src/model.h
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user