vertexAttribPointer method
void
vertexAttribPointer(
- dynamic index,
- dynamic size,
- dynamic type,
- dynamic normalized,
- dynamic stride,
- 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);
}
}