Create a buffer to be used as an element array buffer.
The rendering context.
The initial data contained in this buffer or the size of this buffer's data store in bytes.
Optionalusage: BufferUsage
The intended usage of the buffer.
Optionaloffset: number
The index of the element to start reading the initial data at.
Optionallength: number
The length of the initial data to read into the buffer.
UnsupportedOperationError if a buffer cannot be created.
The data contained in this buffer.
The data contained in this buffer.
The size of this buffer's data store in bytes.
The type of the data in this buffer.
The intended usage of this buffer.
Get the data contained in this buffer.
The data contained in this buffer.
Set the size of this buffer, clearing its data.
The size to set this buffer's data store to in bytes.
Optionalusage: BufferUsage
The intended use case of the buffer.
OptionalsrcOffset: numberOptionallength: numberOptionaldstOffset: number
An array of binary data to be used as an element buffer object. Must contain unsigned integers.
See
WebGLBuffer