GLIndexedBuffer

Constructors

this
this(GLenum trg)
Undocumented in source.

Members

Functions

bindBase
void bindBase(uint index)

calls glBindBufferBase

bindRange
void bindRange(uint index, size_t offset, size_t size)

calls glBindBufferRange

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

isMapped
bool isMapped [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
unmap
void unmap()

bind, glUnmapBuffer, unbind

RawSet
mixintemplate 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 )

RawGet
mixintemplate RawGet()
Undocumented in source.
RawMap
mixintemplate RawMap()
Undocumented in source.
RawAccess
mixintemplate RawAccess()
Undocumented in source.
TemplateSet
mixintemplate TemplateSet()
Undocumented in source.
TemplateGet
mixintemplate TemplateGet()
Undocumented in source.
TemplateMap
mixintemplate TemplateMap()
Undocumented in source.
TemplateAccess
mixintemplate TemplateAccess()
Undocumented in source.
TypeSet
mixintemplate TypeSet(T, string postFix = "")
Undocumented in source.
TypeGet
mixintemplate TypeGet(T, string postFix = "")
Undocumented in source.
TypeMap
mixintemplate TypeMap(T, string postFix = "")
Undocumented in source.
TypeAccess
mixintemplate TypeAccess(T, string postFix = "")
Undocumented in source.
setRawData
void setRawData(void[] data_arr, size_t element_size, Usage mem)

bind, glBufferData, unbind

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

bind, glBufferSubData, unbind

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

return untyped copy of buffer data

is_mapped
bool is_mapped;
Undocumented in source.
mapRawDataRange
void[] mapRawDataRange(size_t offset, size_t length, MapBits[] bits)

bind, glMapBufferRange, unbind

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

Meta