Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 public void AddAttribute(VertexAttribute attribute)
 {
     Attributes.Add(attribute);
 }