X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fgraphics%2FVertexArray.hpp;h=ab02a56f175e9be943b88b9973918bddacfb57f8;hb=831183e2cbab7ebf42bf4cace86f7bf9db482ed1;hp=c1c74950e883f2e0f0296d8dfbe18884c7dc27cb;hpb=5998b18978bd8e7a0c9deb516474634e1d3521c9;p=blank.git diff --git a/src/graphics/VertexArray.hpp b/src/graphics/VertexArray.hpp index c1c7495..ab02a56 100644 --- a/src/graphics/VertexArray.hpp +++ b/src/graphics/VertexArray.hpp @@ -24,10 +24,12 @@ public: VertexArray &operator =(VertexArray &&) noexcept; public: + bool Empty() const noexcept { return idx_count == 0; } + void Bind() const noexcept; template - void PushAttribute(std::size_t which, const std::vector &data) noexcept; + void PushAttribute(std::size_t which, const std::vector &data, bool normalized = false) noexcept; template void PushIndices(std::size_t which, const std::vector &indices) noexcept; @@ -41,7 +43,7 @@ private: template void AttributeData(const std::vector &) noexcept; template - void AttributePointer(std::size_t which) noexcept; + void AttributePointer(std::size_t which, bool normalized = false) noexcept; void BindIndex(std::size_t which) const noexcept; template