bufferData method

void bufferData(
  1. int target,
  2. dynamic data,
  3. int? usage
)

Be careful which type of integer you really pass here. Unfortunately an UInt16List is viewed by the Dart type system just as List

Implementation

void bufferData(int target, dynamic data, int? usage) {
  if(data is int){
    _gl.bufferData(target, data, usage ?? 0);
  }
  else{
    _gl.bufferData(target, data.data, usage ?? 0);
  }

  checkError('bufferData');
}