Rubeus::GraphicComponents::RVertexArray class

A vertex array class that handles vertex and index buffer bindings.

Constructors, destructors, conversion operators

RVertexArray()
Default constructor. Acquires a vertex array object ID from OpenGL.
~RVertexArray()
Destructor.

Public functions

void addBuffer(RBuffer* buffer, GLuint index)
Adds a buffer to the specified shader ID.
void bindVertexArray() const
Bind this vertex array.
void unbindVertexArray() const
Unbind this vertex array.

Function documentation

void Rubeus::GraphicComponents::RVertexArray::addBuffer(RBuffer* buffer, GLuint index)

Adds a buffer to the specified shader ID.

Parameters
buffer in/out If non-null, the buffer.
index The location specified in shader to add a buffer to.