GeometryTests ShowSquareIn3D 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 ShowSquareIn3D()
Examples

[Test, ApproveFirstFrameScreenshot]
public void ShowSquareIn3D()
{
    CreateTriangle(new Vertex[]
    {
        new VertexPosition3DColor(new Vector3D(-3.0f, 3.0f, 0.0f), Color.Red),
        new VertexPosition3DColor(new Vector3D(-3.0f, -3.0f, 0.0f), Color.Red),
        new VertexPosition3DColor(new Vector3D(3.0f, -3.0f, 0.0f), Color.Red)
    });
    CreateTriangle(new Vertex[]
    {
        new VertexPosition3DColor(new Vector3D(3.0f, 3.0f, 0.0f), Color.Red),
        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