]> git.localhorst.tv Git - blank.git/blobdiff - src/graphics/VertexArray.hpp
added block orientation test
[blank.git] / src / graphics / VertexArray.hpp
index c1c74950e883f2e0f0296d8dfbe18884c7dc27cb..ab02a56f175e9be943b88b9973918bddacfb57f8 100644 (file)
@@ -24,10 +24,12 @@ public:
        VertexArray<N> &operator =(VertexArray<N> &&) noexcept;
 
 public:
+       bool Empty() const noexcept { return idx_count == 0; }
+
        void Bind() const noexcept;
 
        template <class T>
-       void PushAttribute(std::size_t which, const std::vector<T> &data) noexcept;
+       void PushAttribute(std::size_t which, const std::vector<T> &data, bool normalized = false) noexcept;
 
        template<class T>
        void PushIndices(std::size_t which, const std::vector<T> &indices) noexcept;
@@ -41,7 +43,7 @@ private:
        template <class T>
        void AttributeData(const std::vector<T> &) noexcept;
        template <class T>
-       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 <class T>