Vao.setAttribute

Add or change an attribute. (Calls glEnableVertexAttribArray and glVertexAttribPointer.)

The second version automatically deduces the parameters for glVertexAttribPointer using attributeParametersFor!T.

  1. void setAttribute(GLuint index, GenericVbo vbo, AttributeParameters parameters)
  2. void setAttribute(GLuint index, SpecificVbo!(T) vbo)
    struct Vao
    void
    setAttribute
    (
    T
    )
    (
    GLuint index
    ,)

Meta