bufferDataVoid method

void bufferDataVoid(
  1. int target,
  2. int 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 bufferDataVoid(int target, int data, int? usage) {
  final offSetPointer = Pointer<Void>.fromAddress(data);
  gl.glBufferDataVoid(target, data, offSetPointer.cast(), usage ?? 0);
  checkError('bufferDataVoid');
}