Sprite LastUV Property Delta Engine Documentation

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

public Rectangle LastUV { get; set; }

Property Value

Type: Rectangle
Remarks

Tests: DeltaEngine.Rendering2D.Tests.SpriteTests
Examples

2 unit tests call DeltaEngine.Rendering2D.Sprite.LastUV
[Test]
public void SettingUVDoesNotSetLastUV()
{
    var sprite = new Sprite("DeltaEngineLogoAlpha", Rectangle.Zero) { UV = Rectangle.HalfCentered };
    Assert.AreEqual(Rectangle.One, sprite.LastUV);
}
[Test]
public void ChangeLastUV()
{
    var sprite = new Sprite("DeltaEngineLogoAlpha", Rectangle.Zero);
    sprite.LastUV = Rectangle.HalfCentered;
    Assert.AreEqual(Rectangle.HalfCentered, sprite.LastUV);
}
See Also