X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fmodel%2Fshapes.hpp;fp=src%2Fmodel%2Fshapes.hpp;h=0000000000000000000000000000000000000000;hb=b61d462707dd3d40a32a6104d88eb24f6a52df63;hp=48205305954ba3c03da6cb3b41bf0c329c2b7737;hpb=eba29c8ad489194cd1e3cd64b5f23424ad4384ef;p=blank.git diff --git a/src/model/shapes.hpp b/src/model/shapes.hpp deleted file mode 100644 index 4820530..0000000 --- a/src/model/shapes.hpp +++ /dev/null @@ -1,56 +0,0 @@ -#ifndef BLANK_MODEL_SHAPES_HPP_ -#define BLANK_MODEL_SHAPES_HPP_ - -#include "geometry.hpp" -#include "Shape.hpp" - -#include -#include - - -namespace blank { - -class NullShape -: public Shape { - -public: - NullShape(); - - bool Intersects(const Ray &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override; - bool Intersects(const glm::mat4 &, const AABB &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override; - -}; - - -class CuboidShape -: public Shape { - -public: - CuboidShape(const AABB &bounds); - - bool Intersects(const Ray &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override; - bool Intersects(const glm::mat4 &, const AABB &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override; - -private: - AABB bb; - -}; - - -class StairShape -: public Shape { - -public: - StairShape(const AABB &bounds, const glm::vec2 &clip); - - bool Intersects(const Ray &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override; - bool Intersects(const glm::mat4 &, const AABB &, const glm::mat4 &, float &, glm::vec3 &) const noexcept override; - -private: - AABB top, bot; - -}; - -} - -#endif