GLArrayBuffer

class GLArrayBuffer : GLBuffer {}

Constructors

this
this()

Inherited Members

From GLBuffer

data_size
size_t data_size;
element_count
uint element_count;
Usage
enum Usage
MapBits
enum MapBits
StorageBits
enum StorageBits
elementCount
uint elementCount [@property getter]
dataSize
size_t dataSize [@property getter]
elementSize
uint elementSize [@property getter]

calculated

unmap
void unmap()

bind, glUnmapBuffer, unbind

RawSet
mixin template RawSet()

provides: * void setRaw( in void[] arr, size_t esize, Usage mem=Usage.STATIC_DRAW ) * void setSubRaw( size_t offset, in void[] arr ) * void storageRaw( in void[] arr, size_t esize, StorageBits[] bits )

setRawData
void setRawData(in void[] data_arr, size_t element_size, Usage mem)

bind, glBufferData, unbind

setRawSubData
void setRawSubData(size_t offset, in void[] data_arr)

bind, glBufferSubData, unbind

setStorage
void setStorage(in void[] data, size_t elem_size, in StorageBits[] bits)
allocStorage
void allocStorage(size_t elem_count, size_t elem_size, in StorageBits[] bits)
getRawSubData
void[] getRawSubData(size_t offset = 0, size_t size = 0)

return untyped copy of buffer data

mapRawDataRange
void[] mapRawDataRange(size_t offset, size_t length, in MapBits[] bits)

bind, glMapBufferRange, unbind

flushRawMappedRange
void flushRawMappedRange(size_t offset, size_t length, size_t elem_size = 1)

Meta