nCine::GLBufferObject class

Handles OpenGL buffer objects of different kinds.

Constructors, destructors, conversion operators

GLBufferObject(GLenum target) explicit
~GLBufferObject()

Public functions

auto glHandle() const -> GLuint
auto target() const -> GLenum
auto size() const -> GLsizeiptr
auto bind() const -> bool
auto unbind() const -> bool
void bufferData(GLsizeiptr size, const GLvoid* data, GLenum usage)
void bufferSubData(GLintptr offset, GLsizeiptr size, const GLvoid* data)
void bufferStorage(GLsizeiptr size, const GLvoid* data, GLbitfield flags)
void bindBufferBase(GLuint index)
void bindBufferRange(GLuint index, GLintptr offset, GLsizei ptrsize)
auto mapBufferRange(GLintptr offset, GLsizeiptr length, GLbitfield access) -> void*
void flushMappedBufferRange(GLintptr offset, GLsizeiptr length)
auto unmap() -> GLboolean
void texBuffer(GLenum internalformat)
void setObjectLabel(const char* label)