FogSettings ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Content FogSettings

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

public class FogSettings

The FogSettings type exposes the following members.

Constructors

  NameDescription
Public methodFogSettings
Initializes a new instance of the FogSettings class
Top
Properties

  NameDescription
Public propertyStatic memberCurrent
Public propertyFogColor
Public propertyFogEnd
Public propertyFogStart
Top
Remarks

Tests: DeltaEngine.Tests.Content.FogSettingsTests
Examples

2 unit tests call DeltaEngine.Content.FogSettings
[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