ANGLE_instanced_arrays

Overview

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.

Location

Required Methods


drawArraysInstancedANGLE

Behaves identically to gl.drawArrays() except that multiple instances of the range of elements are executed, and the instance advances for each iteration.

 

method drawArraysInstancedANGLE(parmode: dynamic; parfirst: dynamic; parcount: dynamic; parprimcount: dynamic)

 

void drawArraysInstancedANGLE(dynamic parmode, dynamic parfirst, dynamic parcount, dynamic parprimcount)

 

func drawArraysInstancedANGLE(_ parmode: dynamic, _ parfirst: dynamic, _ parcount: dynamic, _ parprimcount: dynamic)

 

void drawArraysInstancedANGLE(dynamic parmode, dynamic parfirst, dynamic parcount, dynamic parprimcount)

 

Sub drawArraysInstancedANGLE(parmode As dynamic, parfirst As dynamic, parcount As dynamic, parprimcount As dynamic)

Parameters:

  • parmode:
  • parfirst:
  • parcount:
  • parprimcount:

drawElementsInstancedANGLE

Behaves identically to gl.drawElements() except that multiple instances of the set of elements are executed and the instance advances between each set.

 

method drawElementsInstancedANGLE(parmode: dynamic; parcount: dynamic; partype: dynamic; paroffset: dynamic; parprimcount: dynamic)

 

void drawElementsInstancedANGLE(dynamic parmode, dynamic parcount, dynamic partype, dynamic paroffset, dynamic parprimcount)

 

func drawElementsInstancedANGLE(_ parmode: dynamic, _ parcount: dynamic, _ partype: dynamic, _ paroffset: dynamic, _ parprimcount: dynamic)

 

void drawElementsInstancedANGLE(dynamic parmode, dynamic parcount, dynamic partype, dynamic paroffset, dynamic parprimcount)

 

Sub drawElementsInstancedANGLE(parmode As dynamic, parcount As dynamic, partype As dynamic, paroffset As dynamic, parprimcount As dynamic)

Parameters:

  • parmode:
  • parcount:
  • partype:
  • paroffset:
  • parprimcount:

vertexAttribDivisorANGLE

Modifies the rate at which generic vertex attributes advance when rendering multiple instances of primitives with ext.drawArraysInstancedANGLE() and ext.drawElementsInstancedANGLE().

 

method vertexAttribDivisorANGLE(parindex: dynamic; pardivisor: dynamic)

 

void vertexAttribDivisorANGLE(dynamic parindex, dynamic pardivisor)

 

func vertexAttribDivisorANGLE(_ parindex: dynamic, _ pardivisor: dynamic)

 

void vertexAttribDivisorANGLE(dynamic parindex, dynamic pardivisor)

 

Sub vertexAttribDivisorANGLE(parindex As dynamic, pardivisor As dynamic)

Parameters:

  • parindex:
  • pardivisor: