1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#ifndef MODEL_H #define MODEL_H #include "../shared.h" #include "mesh.h" typedef struct _Model { Mesh *mesh; /* Material? */ char _name[MAX_PATH_LENGTH]; struct _Model *_hash_next; unsigned int _hash; } Model; extern Model *model_obj_new(const char *path); extern Model *model_get(const char *name); extern void model_purge(Model *model); #endif // MODEL_H