Nez.Portable/Graphics/Batcher/BatcherDrawingExt.cs
/// <summary>
/// Draws a list of connected points
/// </summary>
/// <param name="points">The points to connect with lines</param>
/// <param name="color">The color to use</param>
/// <param name="thickness">The thickness of the lines</param>
Draws a list of connected points
Draws a list of connected points
public static void drawPoints(this Batcher batcher, Vector2[] points, Color color, float thickness = 1)
        {
            if (points.Length < 2)
                return;
            batcher.setIgnoreRoundingDestinations(true);
            for (int i = 1; i < points.Length; i++)
                drawLine(batcher, points[i - 1], points[i], color, thickness);
            batcher.setIgnoreRoundingDestinations(false);
        }
public static void drawPoints ( this Batcher batcher , Vector2 [ ] points , Color color , float thickness = 1 ) { if ( points . Length < 2 ) return ; batcher . setIgnoreRoundingDestinations ( true ) ; for ( int i = 1 ; i < points . Length ; i ++ ) drawLine ( batcher , points [ i - 1 ] , points [ i ] , color , thickness ) ; batcher . setIgnoreRoundingDestinations ( false ) ; }
Draws a list of connected points
Draws a list of connected points
Batcher
this
points
Vector2[]
The points to connect with lines
The points to connect with lines
color
Color
The color to use
The color to use
thickness
float
The thickness of the lines
The thickness of the lines