VertexArray

Represents an opengl Vertex Array Object (VAO). A VAO relates Opengl Buffers and Vertex Formats.

Constructors

this
this()

Generates and empty VAO and saves it's name

Destructor

~this
~this()

Deallocates the VAO

Members

Functions

bind
void bind()

Binds this VertexArray to the opengl context

use
void use(Buffer buffer, AttributeFormat[] formats)

Associates this VertexArray with the buffer and the format given by the type VertexType.

Static functions

deleteVertexArray
void deleteVertexArray(GLuint vertexArrayName)
Undocumented in source. Be warned that the author may not have intended to support it.
genVertexArray
GLuint genVertexArray()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta