glamour



abstract interface  IVAO;




abstract void  bind();




abstract void  unbind();




abstract void  remove();




class  VAO: glamour.vao.IVAO;

Represents an OpenGL VertrexArrayObject


GLuint  vao;

The OpenGL  vao name


this();

Initializes the VAO


void  bind();

Binds the VAO


void  unbind();

Unbinds the VAO


void  remove();

Deletes the VAO


void  set_attrib_pointer(GLuint attrib_location, GLenum type, GLint size, GLsizei offset, GLsizei stride, GLboolean normalized = GL_FALSE);
void  set_attrib_pointer(Shader shader, string location, GLenum type, GLint size, GLsizei offset, GLsizei stride, GLboolean normalized = GL_FALSE);

Binds the VAO and sets the vertex attrib pointer.

Parameters
GLenum type Specifies the data type of each component in the array.
GLint size Specifies the number of components per generic vertex attribute.
GLsizei offset Specifies a offset of the first component of the first generic vertex attribute in the array in the data store of the buffer.
GLsizei stride Specifies the byte offset between consecutive generic vertex attributes.
GLboolean normalized Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE = default) when they are accessed.