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)
@trusted nothrow @nogc
void
draw
(,
size_t first
,
size_t count
)

Parameters

type PrimitiveType

Type of primitives to draw.

first size_t

Index of the first vertex to draw.

count size_t

Number of vertices to draw.

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

Meta