new InstancedInterleavedBuffer(array, stride, meshPerAttributeopt)
An instanced version of zen3d.InterleavedBuffer.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
array |
TypedArray | - A typed array with a shared buffer. Stores the geometry data. | ||
stride |
Integer | - The number of typed-array elements per vertex. | ||
meshPerAttribute |
Integer |
<optional> |
1 |
Extends
Members
array :TypedArray
A typed array with a shared buffer.
Stores the geometry data.
Type:
- TypedArray
- Inherited From:
- Source:
count :Integer
Gives the total number of elements in the array.
Type:
- Integer
- Inherited From:
- Source:
dynamic :boolean
Type:
- boolean
- Inherited From:
- Default Value:
- false
- Source:
(readonly) isInstancedInterleavedBuffer :boolean
Type:
- boolean
- Default Value:
- true
- Source:
meshPerAttribute :Integer
Type:
- Integer
stride :Integer
The number of typed-array elements per vertex.
Type:
- Integer
- Inherited From:
- Source:
updateRange :Object
Object containing offset and count.
Type:
- Object
- Inherited From:
- Default Value:
- { offset: 0, count: - 1 }
- Source:
version :Integer
A version number, incremented every time the data is changed.
Type:
- Integer
- Inherited From:
- Default Value:
- 0
- Source:
Methods
setArray(array)
Parameters:
Name | Type | Description |
---|---|---|
array |
TypedArray |
- Inherited From:
- Source: