Interface every buffer implements
Represents an OpenGL element buffer. The constructor must be used to avoid segmentation faults.
The OpenGL buffer name.
Specifies the expected usage pattern of the data store.
Length of the passed data, note it's the length of a void[] array.
Initializes the buffer.
Initualizes the buffer and sets data.
Deletes the buffer.
Binds the buffer.
Unbinds the buffer.
Uploads data to the GPU.
Represents an OpenGL buffer. The constructor must be used to avoid segmentation faults.
The OpenGL buffer name.
Specifies the expected usage pattern of the data store.
Length of the passed data, note it's the length of a void[] array.
Initualizes the buffer and sets data.
data | any kind of data. |
type | OpenGL type of the data (e.g. GL_FLOAT) |
hint | Specifies the expected usage pattern of the data store. |
Deletes the buffer.
Binds the buffer.
Binds the buffer and sets the vertex attrib pointer.
GLenum type | Specifies the data type of each component in the array. |
GLint size | Specifies the number of components per generic vertex attribute. |
GLsizei offset | Specifies a offset of the first component of the first generic vertex attribute in the array in the data store of the buffer. |
GLsizei stride | Specifies the byte offset between consecutive generic vertex attributes. |
GLboolean normalized | Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE = default) when they are accessed. |
Unbinds the buffer.
Uploads data to the GPU.
Updates the Buffer, using glBufferSubData.