public VertexAttribute this[Minotaur.Graphics.VertexUsage usage] { get { VertexAttribute attribute = Attributes.FirstOrDefault(a => a.Usage == usage); if (attribute == null) { throw new KeyNotFoundException(string.Format("Vertex for VertexUsage {0} not found.", usage)); } return(attribute); } }
public void AddAttribute(VertexAttribute attribute) { Attributes.Add(attribute); }