get_n_vertices


Description:

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>

Parameters:

this

A Primitive object

Returns:

The number of vertices to read when drawing.