public void Dispose() { Diffuse?.Dispose(); Ambient?.Dispose(); Normal?.Dispose(); Specular?.Dispose(); Reflection?.Dispose(); SpecularPower?.Dispose(); }
/// <summary>Indicates whether the current object is equal to another object of the same type.</summary> /// <param name="other">An object to compare with this object.</param> /// <returns> /// <span class="keyword"> /// <span class="languageSpecificText"> /// <span class="cs">true</span> /// <span class="vb">True</span> /// <span class="cpp">true</span> /// </span> /// </span> /// <span class="nu"> /// <span class="keyword">true</span> (<span class="keyword">True</span> in Visual Basic)</span> if the current object is equal to the <paramref name="other" /> parameter; otherwise, <span class="keyword"><span class="languageSpecificText"><span class="cs">false</span><span class="vb">False</span><span class="cpp">false</span></span></span><span class="nu"><span class="keyword">false</span> (<span class="keyword">False</span> in Visual Basic)</span>. /// </returns> public bool Equals(Gorgon2DLight other) { if (other == null) { return(false); } return((LightType == other.LightType) && (Attenuation.EqualsEpsilon(other.Attenuation)) && (Intensity.EqualsEpsilon(other.Intensity)) && (SpecularPower.EqualsEpsilon(other.SpecularPower)) && (SpecularEnabled == other.SpecularEnabled) && (Color.Equals(other.Color)) && (Position.Equals(other.Position)) && (LightDirection.Equals(other.LightDirection))); }