Exemplo n.º 1
0
 public override int GetHashCode()
 {
     return
         (Color.GetHashCode() ^
          Intensity.GetHashCode() ^
          Radius.GetHashCode() ^
          Cutoff.GetHashCode() ^
          Falloff.GetHashCode());
 }
Exemplo n.º 2
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Position.GetHashCode();
         hashCode = (hashCode * 397) ^ Normal.GetHashCode();
         hashCode = (hashCode * 397) ^ Color.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 3
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Position.GetHashCode();
         hashCode = (hashCode * 397) ^ Color.GetHashCode();
         hashCode = (hashCode * 397) ^ TextureCoordinate.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 4
0
        public void SetColor4(int loc, Color4 value, int index = 0)
        {
            GLBind.UseProgram(programID);
            var hash = value.GetHashCode();

            if (NeedUpdate(loc + index, hash))
            {
                GL.Uniform4f(loc + index, value.R, value.G, value.B, value.A);
                cachedObjects[loc + index] = hash;
            }
        }
Exemplo n.º 5
0
 public override int GetHashCode()
 {
     unchecked {
         int hash = (int)2166136261;
         hash = (hash * 16777619) ^ Dilate.GetHashCode();
         hash = (hash * 16777619) ^ Softness.GetHashCode();
         hash = (hash * 16777619) ^ Color.GetHashCode();
         hash = (hash * 16777619) ^ Offset.GetHashCode();
         return(hash);
     }
 }
Exemplo n.º 6
0
 /// <inheritdoc/>
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = Texture?.GetHashCode() ?? 0;
         hashCode = (hashCode * 397) ^ Level.GetHashCode();
         hashCode = (hashCode * 397) ^ Slice.GetHashCode();
         hashCode = (hashCode * 397) ^ LoadAction.GetHashCode();
         hashCode = (hashCode * 397) ^ StoreAction.GetHashCode();
         hashCode = (hashCode * 397) ^ ClearColor.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 7
0
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = DiffuseColor.GetHashCode();
         hashCode = (hashCode * 397) ^ (DiffuseMap?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (NormalMap?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ (Sampler?.GetHashCode() ?? 0);
         hashCode = (hashCode * 397) ^ IgnoreLighting.GetHashCode();
         hashCode = (hashCode * 397) ^ NoSpecular.GetHashCode();
         hashCode = (hashCode * 397) ^ HasTransparency.GetHashCode();
         hashCode = (hashCode * 397) ^ (int)HighlightEffect;
         hashCode = (hashCode * 397) ^ (int)RtTransparencyMode;
         return(hashCode);
     }
 }
Exemplo n.º 8
0
 public override int GetHashCode()
 {
     unchecked
     {
         int hashCode = (int)Filter;
         hashCode = (hashCode * 397) ^ (int)AddressU;
         hashCode = (hashCode * 397) ^ (int)AddressV;
         hashCode = (hashCode * 397) ^ (int)AddressW;
         hashCode = (hashCode * 397) ^ MipMapLevelOfDetailBias.GetHashCode();
         hashCode = (hashCode * 397) ^ MaxAnisotropy;
         hashCode = (hashCode * 397) ^ (int)CompareFunction;
         hashCode = (hashCode * 397) ^ BorderColor.GetHashCode();
         hashCode = (hashCode * 397) ^ MinMipLevel.GetHashCode();
         hashCode = (hashCode * 397) ^ MaxMipLevel.GetHashCode();
         return(hashCode);
     }
 }
Exemplo n.º 9
0
 public override int GetHashCode()
 {
     unchecked {
         int hash = (int)2166136261;
         hash = (hash * 16777619) ^ Softness.GetHashCode();
         hash = (hash * 16777619) ^ Dilate.GetHashCode();
         hash = (hash * 16777619) ^ Thickness.GetHashCode();
         hash = (hash * 16777619) ^ OutlineColor.GetHashCode();
         hash = (hash * 16777619) ^ GradientEnabled.GetHashCode();
         if (GradientEnabled)
         {
             hash = (hash * 16777619) ^ Gradient.GetHashCode();
             hash = (hash * 16777619) ^ GradientAngle.GetHashCode();
         }
         return(hash);
     }
 }
Exemplo n.º 10
0
        public override int GetHashCode()
        {
            int hash = 17;

            unchecked
            {
                hash = hash * 23 + (int)Kind * 7;
                hash = hash * 23 + Position.GetHashCode();
                hash = hash * 23 + Direction.GetHashCode();
                hash = hash * 23 + Attenuation.GetHashCode();
                hash = hash * 23 + Color.GetHashCode();
                hash = hash * 23 + Range.GetHashCode();
                hash = hash * 23 + Falloff.GetHashCode();
                hash = hash * 23 + Theta.GetHashCode();
                hash = hash * 23 + Phi.GetHashCode();
            }
            return(hash);
        }
Exemplo n.º 11
0
 public override int GetHashCode()
 {
     return(_color.GetHashCode());
 }