For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface ANGLE_instanced_arrays
interface ANGLE_instanced_arrays {
VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 35070;
drawArraysInstancedANGLE(
mode: number,
first: number,
count: number,
primcount: number,
): void;
drawElementsInstancedANGLE(
mode: number,
count: number,
type: number,
offset: number,
primcount: number,
): void;
vertexAttribDivisorANGLE(index: number, divisor: number): void;
}
VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE: 35070;
drawArraysInstancedANGLE(
mode: number,
first: number,
count: number,
primcount: number,
): void;
drawElementsInstancedANGLE(
mode: number,
count: number,
type: number,
offset: number,
primcount: number,
): void;
vertexAttribDivisorANGLE(index: number, divisor: number): void;
}
Index
Methods
drawArraysInstancedANGLE
-
The
ANGLE_instanced_arrays.drawArraysInstancedANGLE()method of the WebGL API renders primitives from array data like the gl.drawArrays() method. In addition, it can execute multiple instances of the range of elements.Parameters
- mode: number
- first: number
- count: number
- primcount: number
Returns void
drawElementsInstancedANGLE
-
drawElementsInstancedANGLE(
mode: number,
count: number,
type: number,
offset: number,
primcount: number,
): voidThe
ANGLE_instanced_arrays.drawElementsInstancedANGLE()method of the WebGL API renders primitives from array data like the gl.drawElements() method. In addition, it can execute multiple instances of a set of elements.Parameters
- mode: number
- count: number
- type: number
- offset: number
- primcount: number
Returns void
vertexAttribDivisorANGLE
-
The
ANGLE_instanced_arrays.vertexAttribDivisorANGLE()method of the WebGL API modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawArraysInstancedANGLE() and ext.drawElementsInstancedANGLE().Parameters
- index: number
- divisor: number
Returns void
The
ANGLE_instanced_arraysextension is part of the WebGL API and allows to draw the same object, or groups of similar objects multiple times, if they share the same vertex data, primitive count and type.MDN Reference