Line2DTests DrawingTwoLinesWithDifferentRenderLayersIssuesTwoDrawCalls Method Delta Engine Documentation

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

public void DrawingTwoLinesWithDifferentRenderLayersIssuesTwoDrawCalls()
Examples

[Test]
public void DrawingTwoLinesWithDifferentRenderLayersIssuesTwoDrawCalls()
{
    new Line2D(new Vector2D(0.2f, 0.2f), new Vector2D(0.8f, 0.8f), Color.Red).RenderLayer = 1;
    new Line2D(new Vector2D(0.8f, 0.2f), new Vector2D(0.2f, 0.8f), Color.Green).RenderLayer = -1;
    RunAfterFirstFrame(
        () => Assert.AreEqual(2, Resolve<Drawing>().NumberOfDynamicDrawCallsThisFrame));
}
See Also