Exemplo n.º 1
0
        public void DrawLines(Color color, Vector2[] points)
        {
            var col = (RawColor4)color;

            points.ToList().ForEach(el => { GeometryBuffer.AppendVertex(new Detail.Vertex2D {
                    Origin = el, Color = col
                }); });

            GeometryBuffer.SetupTexture(Renderer.WhiteView);
            GeometryBuffer.SetPrimitiveType(PrimitiveTopology.LineList);
            GeometryBuffer.Trim();
        }