draw method

void draw(
  1. int vertexCount, [
  2. int instanceCount,
  3. int firstVertex,
  4. int firstInstance,
])

A non-indexed draw.

firstVertex and firstInstance are the other half of the window setVertexBuffer opens: a backend can address a sub-range either by binding a slice or by skipping vertices, and instanced drawing needs firstInstance to start anywhere but zero.

Implementation

external void draw(
  int vertexCount, [
  int instanceCount,
  int firstVertex,
  int firstInstance,
]);