Buffer

A baseclass of OpenGL buffers.

Constructors

this
this(void* ptr, size_t sz, BufferUsage usage)

Destructor

~this
~this()

Members

Functions

bind
void bind()

Sets the buffer binded.

dispose
void dispose()

Deletes buffer.

overwrite
void overwrite(void* ptr, size_t sz, size_t offset)
Undocumented in source. Be warned that the author may not have intended to support it.
realloc
void realloc(void* ptr, size_t sz, BufferUsage usage)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

NullId
enum NullId;

Not valid buffer id.

Properties

binded
binded [@property getter]

Checks if the buffer is binded.

disposed
disposed [@property getter]

Checks if the buffer is disposed.

id
id [@property getter]

OpenGL buffer id.

target
GLenum target [@property getter]

GL_ARRAY_BUFFER, GL_TEXTURE_BUFFER or etc...

Static variables

_bindedBuffer
Buffer _bindedBuffer;
Undocumented in source.

Variables

_id
GLuint _id;
Undocumented in source.

Meta