24 void Unbind()
const { glBindVertexArray(0); }
35 unsigned int iLayoutIndex,
48 static_cast<GLuint
>(iOffset *
sizeof(
float)));
53 glVertexArrayVertexBuffer(
57 glVertexArrayAttribBinding(
m_RendererID, iLayoutIndex, iLayoutIndex);
Definition IndexBuffer.h:6
unsigned int m_RendererID
Definition IndexBuffer.h:8
Wrapper for OpenGL VAO (Vertex Array Object). Stores the configuration of vertex attributes (layout) ...
Definition VertexArray.h:13
void LinkAttribute(const VertexBuffer &vbo, unsigned int iLayoutIndex, int iNumComponents, int iStride, int iOffset) const
Configures a vertex attribute layout.
Definition VertexArray.h:34
~VertexArray()
Definition VertexArray.h:18
VertexArray()
Definition VertexArray.h:17
VertexArray(const VertexArray &)=delete
void AttachIndexBuffer(const IndexBuffer &ibo) const
Attaches an IndexBuffer to this VAO using DSA.
Definition VertexArray.h:63
void Unbind() const
Definition VertexArray.h:24
VertexArray & operator=(const VertexArray &)=delete
void Bind() const
Definition VertexArray.h:23
unsigned int m_RendererID
Definition VertexArray.h:15
Wrapper for OpenGL VBO (Vertex Buffer Object). Stores raw vertex data (positions, colors,...
Definition Buffer.h:11
unsigned int m_RendererID
Definition Buffer.h:13