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

[Test, ApproveFirstFrameScreenshot]
public void RenderRedSpriteOverBlue()
{
    var colorLogoMaterial =
        new Material(ShaderFlags.Position2DColoredTextured, "DeltaEngineLogoAlpha");
    colorLogoMaterial.DefaultColor = Color.Red;
    new Sprite(colorLogoMaterial, Rectangle.HalfCentered) { RenderLayer = 1 };
    colorLogoMaterial.DefaultColor = Color.Blue;
    new Sprite(colorLogoMaterial, screenTopLeft) { RenderLayer = 0 };
}
See Also