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)
    struct Vao
    void
    setAttribute
    ()
  2. void setAttribute(GLuint index, SpecificVbo!(T) vbo)

Meta