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