projects
/
cyberay
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
- load rudimentary level file
[cyberay]
/
src
/
level.h
diff --git
a/src/level.h
b/src/level.h
index
a2579b2
..
c65fc2d
100644
(file)
--- a/
src/level.h
+++ b/
src/level.h
@@
-9,10
+9,14
@@
struct level {
struct bvhnode *dyn_root;
struct material *mtls;
struct bvhnode *dyn_root;
struct material *mtls;
+ int num_mtls, max_mtls;
};
int load_level(struct level *lvl, const char *fname);
};
int load_level(struct level *lvl, const char *fname);
+void destroy_level(struct level *lvl);
int ray_level(cgm_ray *ray, struct level *lvl, float tmax, struct rayhit *hit);
int ray_level(cgm_ray *ray, struct level *lvl, float tmax, struct rayhit *hit);
+void draw_level(struct level *lvl);
+
#endif /* LEVEL_H_ */
#endif /* LEVEL_H_ */