drawElementsInstanced method

void drawElementsInstanced(
  1. GLenum mode,
  2. GLsizei count,
  3. GLenum type,
  4. GLintptr offset,
  5. GLsizei instanceCount,
)

The WebGL2RenderingContext.drawElementsInstanced() method of the WebGL 2 API renders primitives from array data like the WebGLRenderingContext.drawElements method. In addition, it can execute multiple instances of a set of elements.

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

Implementation

external void drawElementsInstanced(
  GLenum mode,
  GLsizei count,
  GLenum type,
  GLintptr offset,
  GLsizei instanceCount,
);