Creates an element array buffer.
The rendering context of the buffer.
The data to store in the buffer.
Optional
target: ELEMENT_ARRAY_BUFFERThe binding point to bind the buffer to.
Optional
usage: BufferUsageThe usage pattern of the buffer's data store.
Creates a buffer.
The rendering context of the buffer.
The data to store in the buffer.
Optional
target: BufferTargetThe binding point to bind the buffer to.
Optional
usage: BufferUsageThe usage pattern of the buffer's data store.
Readonly
contextThe rendering context of this buffer.
Private
dataThe data contained within this buffer.
Readonly
internalThe WebGL API interface of this buffer.
The binding point to bind this buffer to.
Private
typeThe type of each component in this buffer.
The usage pattern of this buffer's data store.
The data contained within this buffer.
The data contained within this buffer.
The size of each element in this buffer in bytes.
The type of each component in this buffer.
Executes the given function with this buffer bound, then re-binds the previously-bound buffer.
The function to execute.
The return value of the executed function.
Static
Private
bindBinds a buffer to a binding point.
The rendering context of the buffer.
The target binding point.
The buffer.
Static
Private
getGets the internal representation of the currently-bound buffer.
The context that the buffer is bound to.
The target that the buffer is bound to.
The currently-bound buffer.
Static
unbindUnbinds the buffer from the given binding point.
The rendering context.
The target.
Generated using TypeDoc
A data stucture that supplies per-vertex data to the GPU.
See
Attributes