Example #1
0
 public int AddAccessor(gltf_Accessors newAccessor)
 {
     for (int i = 0; i < accessors.Count; i++)
     {
         if (accessors[i].IsSameAs(newAccessor))
         {
             return(i);
         }
     }
     accessors.Add(newAccessor);
     return(accessors.Count - 1);
 }
Example #2
0
 public bool IsSameAs(gltf_Accessors otherAccessor)
 {
     return(this.bufferView == otherAccessor.bufferView && this.byteOffset == otherAccessor.byteOffset && this.componentType == otherAccessor.componentType &&
            this.count == otherAccessor.count && this.type == otherAccessor.type); //min and max do not have to be compared as they must be euql for same bufferView if type is same
 }