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) {
  if (capabilities.isWebGL2 == true && (type == WebGL.INT || type == WebGL.UNSIGNED_INT)) {
    gl.vertexAttribIPointer(index, size, type, stride, offset);
  } else {
    gl.vertexAttribPointer(index, size, type, normalized, stride, offset);
  }
}