createBuffer method

Buffer createBuffer()

Implementation

Buffer createBuffer() {
  startCheck('createBuffer');
  Pointer<Uint32> id = calloc<Uint32>();
  gl.glGenBuffers(1, id);
  checkError('createBuffer');
  int _v = id.value;
  calloc.free(id);
  return Buffer(_v);
}