Create a new instance of InterleavedBuffer
A TypedArray with a shared buffer. Stores the geometry data.
The number of typed-array elements per vertex. Expects a Integer
A TypedArray with a shared buffer. Stores the geometry data.
Gives the total number of elements in the array.
ReadonlyisA callback function that is executed after the Renderer has transferred the geometry data to the GPU.
The number of TypedArray elements per vertex.
This can be used to only update some components of stored data. Use the .addUpdateRange function to add ranges to this array.
The number of components to update.
Position at which to start update.
Defines the intended usage pattern of the data store for optimization purposes. Corresponds to the usage parameter of WebGLRenderingContext.bufferData.
After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.
UUID of this object instance.
A version number, incremented every time the needsUpdate property is set to true.
Flag to indicate that this attribute has changed and should be re-sent to the GPU. Set this to true when you modify the value of the array.
Setting this to true also increments the version.
Adds a range of data in the data array to be updated on the GPU. Adds an object describing the range to the .updateRanges array.
Clears the .updateRanges array.
Creates a clone of this InterleavedBuffer.
This object holds shared array buffers required for properly cloning geometries with interleaved attributes.
Copies another InterleavedBuffer to this InterleavedBuffer instance.
Copies data from attribute[index2] to array[index1].
Expects a Integer
Expects a Integer
Sets the value of the onUploadCallback property.
function that is executed after the Renderer has transferred the geometry data to the GPU.
Set usage
Corresponds to the usage parameter of WebGLRenderingContext.bufferData.
After the initial use of a buffer, its usage cannot be changed. Instead, instantiate a new one and set the desired usage before the next render.
Serializes this InterleavedBuffer. Converting to JSON Geometry format v4,
This object holds shared array buffers required for properly serializing geometries with interleaved attributes.
"Interleaved" means that multiple attributes, possibly of different types, (e.g., position, normal, uv, color) are packed into a single array buffer. An introduction into interleaved arrays can be found here: Interleaved array basics
See