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.
The number of TypedArray elements per vertex.
Object containing offset and count.
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.
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
Calls TypedArray.set( value, offset ) on the array.
The source TypedArray
.
index of the array at which to start copying. Expects a Integer
. Default 0
.
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