BufferAttribute constructor

BufferAttribute(
  1. TypedData array,
  2. int itemSize, [
  3. bool normalized = false
])

Implementation

BufferAttribute(this.array, this.itemSize, [this.normalized = false]) {
  // count = array.length ~/ itemSize;
  count = (array.lengthInBytes / array.elementSizeInBytes) ~/ itemSize;
  usage = 35044; // gl.STATIC_DRAW
}