Optionaldata: IArrayBufferthe data to store in the buffer.
Optional_static: booleantrue for static buffer
Optionalindex: 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.
Destroys the buffer.
Disposes WebGL resources that are connected to this geometry.
Flags this buffer as requiring an upload to the GPU.
Optionaldata: number[] | IArrayBufferthe data to update in the buffer.
StaticfromHelper 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.
A wrapper for data so that it can be used and uploaded by WebGL
Memberof
PIXI