VectorTextTests DrawingTwoVectorTextsWithDifferentRenderLayersIssuesTwoDrawCalls Method Delta Engine Documentation

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

public void DrawingTwoVectorTextsWithDifferentRenderLayersIssuesTwoDrawCalls()
Examples

[Test, CloseAfterFirstFrame]
public void DrawingTwoVectorTextsWithDifferentRenderLayersIssuesTwoDrawCalls()
{
    new VectorText("Yo yo, whats up", Vector2D.Half) { Size = new Size(0.1f), RenderLayer = 1 };
    new VectorText("Jumps Over The Lazy Dog", Vector2D.One) { Color = Color.Teal, RenderLayer = 2 };
    RunAfterFirstFrame(
        () => Assert.AreEqual(2, Resolve<Drawing>().NumberOfDynamicDrawCallsThisFrame));
}
See Also