Buffer

Represents a buffer opengl object. A buffer opengl object is the mechanism through which data can be stored in the GPU, usually vertex data of the models to be rendered.

This class eases/abstracts the interaction with this kind of opengl objects.

Constructors

this
this()

Constructs a new and empty buffer

Destructor

~this
~this()
Undocumented in source.

Members

Functions

bind
void bind()

Binds the buffer to the current opengl context

bufferData
void bufferData(void* data, size_t size)

Sends the unformatted data of the specified size to the buffer

Static functions

del
void del(GLuint buffer)

Deletes a opengl buffer given it's name Params : buffer = opengl name of the opengl buffer

gen
GLuint gen()

Generates a new opengl buffer and returns it's name

Meta