internal void RemoveAttribute(AttributeLayout layout)
        {
            if (layout == null)
            {
                throw new ArgumentNullException("layout");
            }

            ArrayUtility.Remove(ref attributes, layout);
        }
        internal void AddAttribute(AttributeLayout layout)
        {
            if (attributes == null)
            {
                attributes = new AttributeLayout[0];
            }

            ArrayUtility.Add(ref attributes, layout);
        }
Exemple #3
0
 internal float this[AttributeLayout attribute]
 {
     get { return(GetAttributeValue(attribute)); }
     set { SetAttributeValue(attribute, value); }
 }
Exemple #4
0
 internal void SetAttributeValue(AttributeLayout attrib, float value)
 {
     values[map[attrib.channel] * 4 + (int)attrib.index] = value;
 }
Exemple #5
0
 internal float GetAttributeValue(AttributeLayout attrib)
 {
     return(values[map[attrib.channel] * 4 + (int)attrib.index]);
 }
 internal int GetAttributeIndex(AttributeLayout attrib)
 {
     return(map[attrib.channel] * 4 + (int)attrib.index);
 }
 internal void SetAttributeValue(AttributeLayout attrib, float value)
 {
     values[GetAttributeIndex(attrib)] = value;
 }
 internal float GetAttributeValue(AttributeLayout attrib)
 {
     return(values[GetAttributeIndex(attrib)]);
 }