VertexArray.bind

Bind the VertexArray for drawing. Must be called before drawing. VertexArray must be locked.

Only one VertexArray can be bound at a time. It must be released before binding another VertexArray.

class VertexArray(V)
bool
bind
@trusted nothrow @nogc
if (
isVertex!V
)

Parameters

program
Type: GLProgram

The vertex program that will be used to draw data from this VertexArray. Needed for the VertexArray to specify which data corresponds to which attributes.

Return Value

Type: bool

true on success, false on failure (not all vertex attributes found in the program).

Meta