bufferDataNative method

dynamic bufferDataNative(
  1. int target,
  2. int size,
  3. NativeArray<num> data,
  4. int usage,
)

Implementation

bufferDataNative(int target, int size, NativeArray data, int usage) {
  var dataPtr = data.data;
  glBufferData(target, size, dataPtr.cast<Void>(), usage);
}