ArrayBuffer

A buffer for array data. target property returns GL_ARRAY_BUFFER.

Constructors

this
this(T[] buf, BufferUsage usage)

Members

Functions

overwrite
void overwrite(T[] buf, size_t offset)

Modifies the buffer.

realloc
void realloc(T[] buf, BufferUsage usage)

Reallocates the buffer.

Properties

target
GLenum target [@property getter]

Inherited Members

From Buffer

_bindedBuffer
Buffer _bindedBuffer;
Undocumented in source.
NullId
enum NullId;

Not valid buffer id.

_id
GLuint _id;
Undocumented in source.
id
id [@property getter]

OpenGL buffer id.

target
GLenum target [@property getter]

GL_ARRAY_BUFFER, GL_TEXTURE_BUFFER or etc...

~this
~this()
disposed
disposed [@property getter]

Checks if the buffer is disposed.

dispose
void dispose()

Deletes buffer.

binded
binded [@property getter]

Checks if the buffer is binded.

bind
void bind()

Sets the buffer binded.

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.
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.

Meta