Picture SetAppearanceWithoutInterpolation Method Delta Engine Documentation

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

public void SetAppearanceWithoutInterpolation(
	Material material
)
Remarks

Tests: DeltaEngine.Scenes.Tests.Controls.PictureTests
Examples

2 unit tests call DeltaEngine.Scenes.Controls.Picture.SetAppearanceWithoutInterpolation(DeltaEngine.Content.Material)
[Test]
public void SetAppearanceWithoutInterpolationWithNullShouldReturn()
{
    Assert.DoesNotThrow(() => picture.SetAppearanceWithoutInterpolation(null));
}
[Test]
public void SetAppearanceWithoutInterpolation()
{
    var newMaterial = new Material(Color.Red);
    picture.SetAppearanceWithoutInterpolation(newMaterial);
    Assert.AreEqual(newMaterial, picture.Material);
    Assert.AreEqual(newMaterial.DefaultColor, picture.Color);
}
See Also