Vertices.attribute

Gives you the vertex Attribute with the given name or index.

  1. auto attribute(string name, string file, size_t line)
  2. auto attribute(GLuint index, string file, size_t line)
    class Vertices
    inout
    attribute
    (
    GLuint index
    ,
    string file = __FILE__
    ,
    size_t line = __LINE__
    )

Throws

AttributeError when there is no such attribute. The exception message doesn't only tell the name/index of the attribute that doesn't exist, but also lists the attributes that do exist.

Meta