Currently attributes and uniforms in Program return a vector of Attribute and Uniform structures, respectively. Often a user will want to query them by name, however, so it would be better if they returned a map instead. The user might want to know the type/size, or maybe whether the variable got compiled out.
Currently attributes and uniforms in Program return a vector of Attribute and Uniform structures, respectively. Often a user will want to query them by name, however, so it would be better if they returned a map instead. The user might want to know the type/size, or maybe whether the variable got compiled out.