gldtBufferUint32 function

void gldtBufferUint32(
  1. int target,
  2. List<int> list,
  3. int usage
)

Implementation

void gldtBufferUint32(int target, List<int> list, int usage) {
  var bufferData = calloc<Uint32>(list.length);
  for (var i = 0; i < list.length; i++) {
    bufferData.elementAt(i).value = list[i];
  }
  glBufferData(
      target, sizeOf<Uint32>() * list.length, bufferData.cast<Void>(), usage);
  calloc.free(bufferData);
}