VertexArray.draw

Draw vertices from the VertexArray directly, without using indices.

This is the only way to draw if the VertexArray has no index type.

Can only be called when the VertexArray is bound.

class VertexArray(V)
void
draw
@trusted nothrow @nogc
()
if (
isVertex!V
)

Parameters

type

Type of primitives to draw.

first
Type: size_t

Index of the first vertex to draw.

count
Type: size_t

Number of vertices to draw.

first + count <= VertexArray.length() must be true.

Meta