InterleavedBuffer constructor

InterleavedBuffer(
  1. NativeArray<num> 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

InterleavedBuffer(this.array, this.stride) {
  count = array.length ~/ stride;

  usage = StaticDrawUsage;
  updateRange = {"offset": 0, "count": -1};

  version = 0;

  uuid = MathUtils.generateUUID();
}