**get_n_vertices**()

Cogl.Primitive.get_n_vertices – doc Reference Manual

public int **get_n_vertices** ()

Queries the number of vertices to read when drawing the given this.

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

If set_indices has been used to associate a sequence of Indices with the given this 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>

this |
A Primitive object |

The number of vertices to read when drawing. |