X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fshape.hpp;h=434f427ec7b70473d86390288f1b2020e19a79e8;hb=d6435142245c019523b9385048d6d79bdd2565f2;hp=438fa101d1a9a748cbce4c345762dbf7d1b804d6;hpb=41e0223ec090142bf03066f4f5fc1f5005095072;p=blank.git diff --git a/src/shape.hpp b/src/shape.hpp index 438fa10..434f427 100644 --- a/src/shape.hpp +++ b/src/shape.hpp @@ -43,6 +43,27 @@ private: }; + +class StairShape +: public Shape { + +public: + StairShape(const AABB &bounds, const glm::vec2 &clip); + + size_t VertexCount() const override; + void Vertices(std::vector &, const glm::vec3 &) const override; + void Normals(std::vector &) const override; + + size_t OutlineCount() const override; + void Outline(std::vector &, const glm::vec3 &) const override; + + bool Intersects(const Ray &, const glm::mat4 &, float &, glm::vec3 &) const override; + +private: + AABB top, bot; + +}; + } #endif