Encapsulates an OpenGL Vertex Array Object (VAO). More...
#include <VertexArray.h>
Public Member Functions | |
VertexArray () | |
~VertexArray () | |
void | Bind () const |
void | Unbind () const |
void | AddVertexAttribute (GLuint index, GLint size, GLenum type, GLboolean normalized, GLsizei stride, const void *pointer) |
Encapsulates an OpenGL Vertex Array Object (VAO).
The VertexArray class manages the creation, binding, and deletion of an OpenGL VAO. It provides methods to bind/unbind the VAO and to add vertex attribute pointers.
VertexArray::VertexArray | ( | ) |
VertexArray::~VertexArray | ( | ) |
void VertexArray::AddVertexAttribute | ( | GLuint | index, |
GLint | size, | ||
GLenum | type, | ||
GLboolean | normalized, | ||
GLsizei | stride, | ||
const void * | pointer | ||
) |
void VertexArray::Bind | ( | ) | const |
void VertexArray::Unbind | ( | ) | const |