Rubeus::GraphicComponents::RIndexBuffer class

A buffer class that handles generating and binding OpenGL index buffers.

Constructors, destructors, conversion operators

RIndexBuffer(GLushort* data, GLsizei count)
Constructor. Generates a buffer object and applies its layout.
~RIndexBuffer()
Destructor.

Public functions

void bindIndexBuffer() const
Binds this index buffer.
void unbindIndexBuffer() const
Unbinds this index buffer.

Function documentation

Rubeus::GraphicComponents::RIndexBuffer::RIndexBuffer(GLushort* data, GLsizei count)

Constructor. Generates a buffer object and applies its layout.

Parameters
data in/out If non-null, the data.
count Number of indices specified.