FogSettings Current Property Delta Engine Documentation

Namespace: DeltaEngine.Content
Assembly: DeltaEngine (in DeltaEngine.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public static FogSettings Current { get; }

Property Value

Type: FogSettings
Remarks

Tests: DeltaEngine.Tests.Content.FogSettingsTests
Examples

2 unit tests call DeltaEngine.Content.FogSettings.Current
[Test]
public void CurrentFogSettingsWillBeFilledWithDefaultValuesIfNoSpecificSettingsAreSet()
{
    FogSettings defaultSettings = FogSettings.Current;
    Assert.AreNotEqual(0, defaultSettings.FogStart);
    Assert.AreNotEqual(0, defaultSettings.FogEnd);
    Assert.AreNotEqual(0, defaultSettings.FogColor.A);
}
[Test]
public void CreatingOwnFogSettingsWillChangeTheCurrentSettings()
{
    FogSettings defaultSettings = FogSettings.Current;
    var ownFogSettings = new FogSettings(Color.Green, 1, 2);
    Assert.AreNotEqual(defaultSettings, ownFogSettings);
    Assert.AreEqual(ownFogSettings, FogSettings.Current);
}
See Also