deleteBuffer method

dynamic deleteBuffer(
  1. Buffer v0
)

Implementation

deleteBuffer(Buffer v0) {
  var _buffersList = [v0.bufferId];
  final ptr = calloc<Uint32>(_buffersList.length);
  ptr.asTypedList(1).setAll(0, _buffersList);
  glDeleteBuffers(1, ptr);
  calloc.free(ptr);
}