started implementing intersection functions and the main renderer data
[cyberay] / src / level.h
diff --git a/src/level.h b/src/level.h
new file mode 100644 (file)
index 0000000..b5385a7
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef LEVEL_H_
+#define LEVEL_H_
+
+#include "rt.h"
+#include "geom.h"
+
+struct level {
+       struct bvhnode *st_root;
+       struct bvhnode *dyn_root;
+
+       struct material *mtls;
+};
+
+int load_level(struct level *lvl, const char *fname);
+
+int ray_level(cgm_ray *ray, struct level *lvl, float maxt, struct hitpoint *hit);
+
+#endif /* LEVEL_H_ */