ANGLE_instanced_arrays extension type

The ANGLE_instanced_arrays extension 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.

WebGL extensions are available using the WebGLRenderingContext.getExtension method. For more information, see also Using Extensions in the WebGL tutorial.

Note: This extension is only available to WebGLRenderingContext contexts. In WebGL2RenderingContext, the functionality of this extension is available on the WebGL2 context by default and the constants and methods are available without the "ANGLE" suffix.

Despite the name "ANGLE", this extension works on any device if the hardware supports it and not just on Windows when using the ANGLE library. "ANGLE" just indicates that this extension has been written by the ANGLE library authors.

on
Implemented types

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

drawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount) → void
The ANGLE_instanced_arrays.drawArraysInstancedANGLE() method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawArrays method. In addition, it can execute multiple instances of the range of elements.
drawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount) → void
The ANGLE_instanced_arrays.drawElementsInstancedANGLE() method of the WebGL API renders primitives from array data like the WebGLRenderingContext.drawElements method. In addition, it can execute multiple instances of a set of elements.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
vertexAttribDivisorANGLE(GLuint index, GLuint divisor) → void
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 ANGLE_instanced_arrays.drawArraysInstancedANGLE and ANGLE_instanced_arrays.drawElementsInstancedANGLE.

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE GLenum
no setter