prosperon/source/engine/model.h

27 lines
540 B
C
Raw Normal View History

2021-11-30 21:29:18 -06:00
#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