Cogl.Primitive.prototype.get_n_vertices

function get_n_vertices(): Number(gint) {
    // Gjs wrapper for cogl_primitive_get_n_vertices()
}
  

Queries the number of vertices to read when drawing the given primitive. Usually this value is implicitly set when associating vertex data or indices with a Cogl.Primitive.

If Cogl.Primitive.prototype.set_indices has been used to associate a sequence of Cogl.Indices with the given primitive then the number of vertices to read can also be phrased as the number of indices to read.

<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

Returns

The number of vertices to read when drawing.