drawElements method

void drawElements(
  1. int mode,
  2. int count,
  3. int type,
  4. int offset,
)

Implementation

void drawElements(int mode, int count, int type, int offset) {
  startCheck('drawElements');
  var offSetPointer = Pointer<Void>.fromAddress(offset);
  gl.glDrawElements(mode, count, type, offSetPointer.cast());
  checkError('drawElements');
  calloc.free(offSetPointer);
}