Optional
data: IArrayBufferthe data to store in the buffer.
Optional
_static: booleantrue
for static buffer
Optional
index: booleantrue
for index buffer
The data in the buffer, as a typed array
The type of buffer this is, one of:
Flags whether this is an index buffer.
Index buffers are of type ELEMENT_ARRAY_BUFFER
. Note that setting this property to false will make
the buffer of type ARRAY_BUFFER
.
For backwards compatibility.
Flags this buffer as requiring an upload to the GPU.
Optional
data: number[] | IArrayBufferthe data to update in the buffer.
Static
fromHelper function that creates a buffer based on an array or TypedArray
the TypedArray that the buffer will store. If this is a regular Array it will be converted to a Float32Array.
Generated using TypeDoc
A wrapper for data so that it can be used and uploaded by WebGL
Memberof
PIXI