VertexArray.this

Construct a VertexArray.

class VertexArray(V)
@trusted nothrow @nogc
this

Parameters

gl OpenGL

The OpenGL wrapper.

storage 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