VAO

Represents an OpenGL VAO.

Members

Functions

bind
void bind()

Bind the VAO and make it ready for use from OpenGL.

cleanup
void cleanup()

Cleans up resources used by the VAO. Make sure to cleanup() on VBOs aswell.

unbind
void unbind()

Unbind the VAO.

Properties

vao
GLuint vao [@property getter]

GLuint id for the VAO.

Static functions

generateNew
VAO generateNew()

Generate a new VAO. (glGenVertexArrays)

Meta