VertexArray.this

Construct a VertexArray.

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

Parameters

gl
Type: OpenGL

The OpenGL wrapper.

storage
Type: V[]

Space to store vertices in (we need to store a copy of all vertex data in RAM to allow easy modification). Determines the maximum number of vertices the VertexArray can hold. The VertexArray will not deallocate this space when destroyed; the caller must take care of that.

Meta