/// <summary> /// Function to copy a list of items. /// </summary> /// <typeparam name="TA">The type of array element.</typeparam> /// <param name="dest">The destination list.</param> /// <param name="src">The source list.</param> /// <param name="startSlot">The starting index.</param> private static void Copy <TA>(GorgonArray <TA> dest, IReadOnlyList <TA> src, int startSlot) where TA : IEquatable <TA> { dest.Clear(); if (src == null) { return; } int length = src.Count.Min(dest.Length - startSlot); for (int i = 0; i < length; ++i) { dest[i + startSlot] = src[i]; } }
/// <summary> /// Initializes a new instance of the <see cref="MeshMaterial"/> class. /// </summary> public MeshMaterial() { SpecularPower = 1.0f; Textures = new GorgonArray <string>(3); BlendState = GorgonBlendState.NoBlending; }