X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fworld.hpp;h=b7ed84bd5a71fbfa60415b70c9e84b74b72d8739;hb=6af76d9e1a6499ebdab405c1d679d24b9e19fded;hp=58f7a25faeea7e8c8a622cf65d247a0bb022bf99;hpb=ac8765b510707d77cac9620778f40ddf3a4ad2a2;p=blank.git diff --git a/src/world.hpp b/src/world.hpp index 58f7a25..b7ed84b 100644 --- a/src/world.hpp +++ b/src/world.hpp @@ -2,6 +2,7 @@ #define BLANK_WORLD_HPP_ #include "model.hpp" +#include "geometry.hpp" #include #include @@ -95,6 +96,8 @@ public: Block &BlockAt(const glm::vec3 &pos) { return blocks[ToIndex(pos)]; } const Block &BlockAt(const glm::vec3 &pos) const { return blocks[ToIndex(pos)]; } + bool Intersection(const Ray &, const glm::mat4 &M, int *blkid = nullptr, float *dist = nullptr) const; + void Draw(); private: