diff options
Diffstat (limited to 'Project/VertexArray.h')
-rw-r--r-- | Project/VertexArray.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/Project/VertexArray.h b/Project/VertexArray.h new file mode 100644 index 0000000..2114285 --- /dev/null +++ b/Project/VertexArray.h @@ -0,0 +1,23 @@ +#ifndef VERTEXARRAY_H +#define VERTEXARRAY_H + +#include "VertexBuffer.h" +class VertexBufferLayout; + +class VertexArray +{ +public: + VertexArray(); + ~VertexArray(); + + void AddBuffer(const VertexBuffer& vb, const VertexBufferLayout& layout); + void UpdateBuffer(const VertexBuffer& vb, const void* newVBData, const unsigned int& newVBSize); + + void Bind() const; + void Unbind() const; +private: + unsigned int m_rendererID; +}; + + +#endif // VERTEXARRAY_H |