예제 #1
0
        public void DrawLines(Color color, Vector2[] points)
        {
            if (!Initialized)
            {
                return;
            }

            var col = (RawColor4)color;

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

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