gldtGenBuffers function

List<int> gldtGenBuffers(
  1. int n
)

Implementation

List<int> gldtGenBuffers(int n) {
  var list = <int>[];
  var buffers = calloc<Uint32>(n);
  glGenBuffers(n, buffers);
  for (var i = 0; i < n; i++) {
    list.add((buffers + i).value);
  }
  calloc.free(buffers);
  return list;
}