projects
/
cyberay
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
better obj loading
[cyberay]
/
src
/
mesh.h
diff --git
a/src/mesh.h
b/src/mesh.h
index
4a51837
..
cf12193
100644
(file)
--- a/
src/mesh.h
+++ b/
src/mesh.h
@@
-12,9
+12,17
@@
struct mesh {
struct aabox aabb;
struct material mtl;
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);
void destroy_mesh(struct mesh *m);
void draw_mesh(struct mesh *m);