glDrawArraysInstanced
glDrawArraysInstanced is an OpenGL function that renders multiple instances of a sequence of vertices described by the currently bound vertex array state. It enables instanced rendering, where a single set of vertex data is drawn many times, potentially with per-instance variation supplied by the shader.
The signature is void glDrawArraysInstanced(GLenum mode, GLint first, GLsizei count, GLsizei instancecount). mode specifies the primitive
Per-instance variation is typically achieved by attributes configured to advance once per instance. This is done
Common uses include rendering large numbers of similar objects, such as particles, foliage, or crowds, with
Compatibility and variants: glDrawArraysInstanced is available in core OpenGL since version 3.1 (via ARB_draw_instanced). There are