public override int GetHashCode()
 {
     return(HashHelper.Combine(
                CullMode.GetHashCode(),
                HashHelper.Combine(
                    FillMode.GetHashCode(),
                    HashHelper.Combine(IsDepthClipEnabled.GetHashCode(), IsScissorTestEnabled.GetHashCode()))));
 }
Esempio n. 2
0
        public override int GetHashCode()
        {
            int hash = 0;

            hash = (hash * 397) ^ PolyID.GetHashCode();
            hash = (hash * 397) ^ Stippling.GetHashCode();
            hash = (hash * 397) ^ SidesType.GetHashCode();
            hash = (hash * 397) ^ PosSurface.GetHashCode();
            hash = (hash * 397) ^ NegSurface.GetHashCode();

            for (var i = 0; i < Vertices.Count; i++)
            {
                hash = (hash * 397) ^ Vertices[i].GetHashCode();
                hash = (hash * 397) ^ VertexIDs[i].GetHashCode();
            }

            return(hash);
        }
Esempio n. 3
0
 public override int GetHashCode()
 {
     return(DepthTest.GetHashCode() ^ DepthBias.GetHashCode() ^ FrontFace.GetHashCode() ^ CullMode.GetHashCode() ^ BlendMode.GetHashCode() ^ FillMode.GetHashCode() ^ StencilMode.GetHashCode());
 }
Esempio n. 4
0
 /// <summary>
 /// Returns a hash code.
 /// </summary>
 /// <returns>
 /// A hash code for this instance.
 /// </returns>
 public override int GetHashCode()
 {
     return(CullMode.GetHashCode() ^ EnableMultisampling.GetHashCode());
 }