gldtBufferFloat function

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

Implementation

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