vertexAttribPointer method

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

Implementation

void vertexAttribPointer(index, size, type, normalized, stride, offset) {
  if (capabilities.isWebGL2 == true && (type == gl.INT || type == gl.UNSIGNED_INT)) {
    gl.vertexAttribIPointer(index, size, type, stride, offset);
  } else {
    gl.vertexAttribPointer(index, size, type, normalized, stride, offset);
  }
}