SpriteTests DrawModifiedUVSprite 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 DrawModifiedUVSprite()
Examples

[Test, ApproveFirstFrameScreenshot]
public void DrawModifiedUVSprite()
{
    var sprite = new Sprite(
        new Material(ShaderFlags.Position2DColoredTextured, "DeltaEngineLogoAlpha"),
        Rectangle.FromCenter(new Vector2D(0.5f, 0.5f), new Size(0.2f)));
    sprite.LastUV = sprite.UV = new Rectangle(0, 0, 0.5f, 0.5f);
}
See Also