BufferAttribute<TData extends NativeArray<num>> constructor

BufferAttribute<TData extends NativeArray<num>>(
  1. TData arrayList,
  2. int itemSize, [
  3. bool normalized = false
])

Implementation

BufferAttribute(TData arrayList, int itemSize, [bool normalized = false]) {
  type = "BufferAttribute";
  array = arrayList;
  this.itemSize = itemSize;
  count = arrayList.length ~/ itemSize;
  this.normalized = normalized == true;

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

  version = 0;
}