public override int GetHashCode() { return (Color.GetHashCode() ^ Intensity.GetHashCode() ^ Radius.GetHashCode() ^ Cutoff.GetHashCode() ^ Falloff.GetHashCode()); }
public override int GetHashCode() { unchecked { int hashCode = Position.GetHashCode(); hashCode = (hashCode * 397) ^ Normal.GetHashCode(); hashCode = (hashCode * 397) ^ Color.GetHashCode(); return(hashCode); } }
public override int GetHashCode() { unchecked { int hashCode = Position.GetHashCode(); hashCode = (hashCode * 397) ^ Color.GetHashCode(); hashCode = (hashCode * 397) ^ TextureCoordinate.GetHashCode(); return(hashCode); } }
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; } }
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); } }
/// <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); } }
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); } }
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); } }
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); } }
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); }
public override int GetHashCode() { return(_color.GetHashCode()); }