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

CreateVertices() private static method

private static CreateVertices ( ) : Vertex[]
return Vertex[]
        private static Vertex[] CreateVertices()
        {
            var topLeft = new Vertex { Position = new Vector3(-1f, 1f, 0f), Color = new Color4(1f, 0f, 0f) };
            var topRight = new Vertex { Position = new Vector3(1f, 1f, 0f), Color = new Color4(0f, 0f, 1f) };
            var bottomLeft = new Vertex { Position = new Vector3(-1f, -1f, 0f), Color = new Color4(0f, 1f, 0f) };
            var bottomRight = new Vertex { Position = new Vector3(1f, -1f, 0f), Color = new Color4(1f, 1f, 0f) };

            return new[] { topLeft, topRight, bottomLeft, bottomRight };
        }
QuadWithVertexAndIndexBuffer