drawInstances
Renders multiple instances of a set of primitives using the provided shader and vertex data.
Parameters
The Shader object used to render the instances.
A list of VertexBuffer objects containing vertex data for the primitives.
A list of VertexBuffer objects containing per-instance attributes.
The type of primitive to draw (e.g., triangles, lines, etc.).
The offset into the vertex buffer to start drawing.
The number of vertices to draw.
The offset into the instance buffer to start rendering instances.
The number of instances to render.
The number of vertices per patch, used for tessellation. Defaults to 0.
Renders multiple instances of a set of primitives using the provided shader and vertex data.
Parameters
The Shader object used to render the instances.
A list of VertexBuffer objects containing vertex data for the primitives.
A list of VertexBuffer objects containing per-instance attributes.
The type of primitive to draw (e.g., triangles, lines, etc.).
The offset into the vertex buffer to start drawing.
The number of vertices to draw.
The offset into the instance buffer to start rendering instances.
The number of instances to render.
The number of vertices per patch, used for tessellation. Defaults to 0.
Renders multiple instances of a set of primitives using the provided shader and vertex data.
Parameters
The Shader object used to render the instances.
A list of VertexBuffer objects containing vertex data for the primitives.
A list of VertexBuffer objects containing per-instance attributes.
The type of primitive to draw (e.g., triangles, lines, etc.).
The offset into the vertex buffer to start drawing.
The number of vertices to draw.
The offset into the instance buffer to start rendering instances.
The number of instances to render.
The number of vertices per patch, used for tessellation. Defaults to 0.