VectorTextTests DrawingTwoVectorTextsWithTheSameRenderLayerOnlyIssuesOneDrawCall 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 DrawingTwoVectorTextsWithTheSameRenderLayerOnlyIssuesOneDrawCall()
Examples

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