gldtGenTextures function

List<int> gldtGenTextures(
  1. int n
)

Implementation

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