GeometryTests ShowLineIn3D Method Delta Engine Documentation

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

public void ShowLineIn3D()
Examples

[Test, ApproveFirstFrameScreenshot]
public void ShowLineIn3D()
{
    var drawing = Resolve<Drawing>();
    var lineMaterial = new Material(ShaderFlags.Colored, "");
    new MaterialVertexDrawer(
        () => drawing.AddLines(lineMaterial,
            new[]
            {
                new VertexPosition3DColor(new Vector3D(-3.0f, 3.0f, 0.0f), Color.Red),
                new VertexPosition3DColor(new Vector3D(3.0f, 3.0f, 0.0f), Color.Red)
            }));
}
See Also