Afterglow.Graphics.SlimDX.ApiExamples.TriangleWithVertexBuffer.CreateVertices C# (CSharp) Method

CreateVertices() private static method

private static CreateVertices ( ) : Vertex[]
return Vertex[]
        private static Vertex[] CreateVertices()
        {
            var top = new Vertex { Position = new Vector3(0f, 1f, 0f), Color = new Color4(01f, 0f, 0f) };
            var left = new Vertex { Position = new Vector3(-1f, -1f, 0f), Color = new Color4(0f, 1f, 0f) };
            var right = new Vertex { Position = new Vector3(1f, -1f, 0f), Color = new Color4(0f, 0f, 1f) };

            return new[] { top, right, left };
        }
TriangleWithVertexBuffer