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) {
  var offsetPointer = Pointer<Void>.fromAddress(offset);
  gl.glVertexAttribPointer(index, size, type, normalized ? 1 : 0, stride,
      offsetPointer.cast<Void>());
}