Drawing NumberOfDynamicVerticesDrawnThisFrame Property Delta Engine Documentation

Namespace: DeltaEngine.Graphics
Assembly: DeltaEngine.Graphics (in DeltaEngine.Graphics.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public int NumberOfDynamicVerticesDrawnThisFrame { get; }

Property Value

Type: Int32
Remarks

Tests: DeltaEngine.Graphics.Tests.DrawingTests
Examples

1 unit tests call DeltaEngine.Graphics.Drawing.NumberOfDynamicVerticesDrawnThisFrame
[Test, ApproveFirstFrameScreenshot]
public void DrawRedLine()
{
    new Line(Vector2D.Zero, new Vector2D(1280, 720), Color.Red);
    RunAfterFirstFrame(
        () => Assert.AreEqual(2, Resolve<Drawing>().NumberOfDynamicVerticesDrawnThisFrame));
}
See Also