SpriteTests SetDrawAreaWithoutInterpolation Method Delta Engine Documentation

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

public void SetDrawAreaWithoutInterpolation()
Examples

[Test, CloseAfterFirstFrame]
public void SetDrawAreaWithoutInterpolation()
{
    var sprite = new Sprite("DeltaEngineLogoAlpha", Rectangle.Zero);
    sprite.SetWithoutInterpolation(Rectangle.One);
    sprite.SetWithoutInterpolation(sprite.renderingData);
    Assert.AreEqual(Rectangle.One, sprite.DrawArea);
    Assert.AreEqual(Rectangle.One, sprite.LastDrawArea);
    Assert.AreEqual(sprite.renderingData, sprite.Get<RenderingData>());
}
See Also