Vertices.setAttribute

Add or change an attribute.

Does not yet call vao.setAttribute(...). It only stores the information in the attributes map, such that you can later call attribute(name).enable(index), which will call vao.setAttribute.

The second version automatically deduces the AttributeParameters using attributeParametersFor!T. (Defined in moggle.core.vao.)

  1. Attribute setAttribute(string name, GenericBuffer buffer, AttributeParameters parameters)
  2. Attribute setAttribute(string name, Buffer!T buffer)
    class Vertices
    setAttribute
    (
    T
    )
    (
    in string name
    ,)

Meta