InterleavedBuffer.fromList constructor

InterleavedBuffer.fromList(
  1. TypedData array,
  2. int stride
)

array -- A typed array with a shared buffer. Stores the geometry data.

stride -- The number of typed-array elements per vertex.

Implementation

factory InterleavedBuffer.fromList(TypedData array, int stride) {
  return InterleavedBuffer(Float32Array.fromList(array.buffer.asFloat32List()), stride);
}