X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Flevel.h;fp=src%2Flevel.h;h=b5385a7c97b2881a683e004ce76c47ad4493d93c;hb=d2f1a6ab443b86a42e9fd28a19ebdbcf729a5d51;hp=0000000000000000000000000000000000000000;hpb=d05988274bf2ff6274e2c874976681aa989b7d89;p=cyberay diff --git a/src/level.h b/src/level.h new file mode 100644 index 0000000..b5385a7 --- /dev/null +++ b/src/level.h @@ -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_ */