new InterleavedBuffer(array, stride)
"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.
Parameters:
Name | Type | Description |
---|---|---|
array |
TypedArray | - A typed array with a shared buffer. Stores the geometry data. |
stride |
Integer | - The number of typed-array elements per vertex. |
- Source:
Members
array :TypedArray
A typed array with a shared buffer.
Stores the geometry data.
Type:
- TypedArray
- Source:
count :Integer
Gives the total number of elements in the array.
Type:
- Integer
- Source:
dynamic :boolean
Type:
- boolean
- Default Value:
- false
- Source:
stride :Integer
The number of typed-array elements per vertex.
Type:
- Integer
- Source:
updateRange :Object
Object containing offset and count.
Type:
- Object
- Default Value:
- { offset: 0, count: - 1 }
- Source:
version :Integer
A version number, incremented every time the data is changed.
Type:
- Integer
- Default Value:
- 0
- Source:
Methods
setArray(array)
Parameters:
Name | Type | Description |
---|---|---|
array |
TypedArray |
- Source: