Cogl.Primitive.prototype.set_n_vertices

function set_n_vertices(n_vertices: Number(gint)): void {
    // Gjs wrapper for cogl_primitive_set_n_vertices()
}
  

Specifies how many vertices should be read when drawing the given primitive.

Usually this value is set implicitly when associating vertex data or indices with a Cogl.Primitive.

<note>To be clear; it doesn't refer to the number of vertices - in terms of data - associated with the primitive it's just the number of vertices to read and draw.</note>

Since 1.8

n_vertices

The number of vertices to read when drawing.