X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fmesh.h;h=cf1219355f3c0176cec7b7214128bc2a47a3d43d;hb=5caf9953c6c26f649087189222b1359da85d306e;hp=4a518378f748f3885d08966edfe803ebf2bfe328;hpb=c608ee9a7df130c64f195fd1e9af1f145cad207d;p=cyberay diff --git a/src/mesh.h b/src/mesh.h index 4a51837..cf12193 100644 --- a/src/mesh.h +++ b/src/mesh.h @@ -12,9 +12,17 @@ struct mesh { struct aabox aabb; struct material mtl; + struct mesh *next; }; -int load_mesh(struct mesh *m, const char *fname); +struct scenefile { + struct mesh *meshlist; + int num_meshes; +}; + +int load_scenefile(struct scenefile *scn, const char *fname); +void destroy_scenefile(struct scenefile *scn); + void destroy_mesh(struct mesh *m); void draw_mesh(struct mesh *m);