drawArraysInstanced method

void drawArraysInstanced(
  1. GLenum mode,
  2. GLint first,
  3. GLsizei count,
  4. GLsizei instanceCount,
)

The WebGL2RenderingContext.drawArraysInstanced() method of the WebGL 2 API renders primitives from array data like the WebGLRenderingContext.drawArrays method. In addition, it can execute multiple instances of the range of elements.

Note: When using WebGLRenderingContext, the ANGLE_instanced_arrays extension can provide this method, too.

Implementation

external void drawArraysInstanced(
  GLenum mode,
  GLint first,
  GLsizei count,
  GLsizei instanceCount,
);