Initial commit

This commit is contained in:
2021-12-01 03:29:18 +00:00
parent 7fb0a74b7e
commit 3dcaf6df81
72 changed files with 16530 additions and 0 deletions

26
source/engine/model.h Normal file
View File

@@ -0,0 +1,26 @@
#ifndef MODEL_H
#define MODEL_H
struct mMesh;
struct mShader;
struct mModel {
struct mMesh *meshes;
struct mMesh *mp;
char *directory;
const char *path;
char *name;
};
/* Get the model at a path, or create and return if it doesn't exist */
struct mModel *GetExistingModel(const char *path);
/* Make a Model struct */
struct mModel *MakeModel(const char *path);
/* Load a model from memory into the GPU */
void loadmodel(struct mModel *model);
void draw_model(struct mModel *model, struct mShader *shader);
#endif