78 Buffer(GLenum input_target);
114 void SetId(
unsigned int id);
133 void CopyData(GLsizeiptr size,
const void *data, GLenum usage);
143 void CopyVertices(GLsizeiptr size,
const void *data, GLenum usage);
152 void CopyIndices(GLsizeiptr size,
const void *data, GLenum usage);
Buffer wrapper around OpenGL buffer objects.
void Bind()
Bind the buffer object.
GLenum GetTarget()
Get the buffer object target.
GLenum target
Buffer object target (like GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER...)
void SetTarget(GLenum target)
Set the buffer object target.
Buffer()
Default constructor, does nothing.
int GetId()
Get the buffer object id.
void CopyData(GLsizeiptr size, const void *data, GLenum usage)
Copy data to the buffer object.
void Delete()
Delete the buffer object.
void Unbind()
Unbind the buffer object.
void CopyIndices(GLsizeiptr size, const void *data, GLenum usage)
Copy data to the buffer object.
unsigned int id
Buffer object id, generated by OpenGL.
void CopyVertices(GLsizeiptr size, const void *data, GLenum usage)
Copy data to the buffer object.
void SetId(unsigned int id)
Set the buffer object id.