vertexAttribPointer method

void vertexAttribPointer(
  1. int index,
  2. int size,
  3. int type,
  4. bool normalized,
  5. int stride,
  6. int offset,
)

Implementation

void vertexAttribPointer(int index, int size, int type, bool normalized, int stride, int offset) {
  startCheck('vertexAttribPointer');
  var offsetPointer = Pointer<Void>.fromAddress(offset);
  using((Arena arena) {
    gl.glVertexAttribPointer(index, size, type, normalized ? 1 : 0, stride, offsetPointer.cast<Void>());
  });
  checkError('vertexAttribPointer');
  //calloc.free(offsetPointer);
}