LilyPath/DrawBatch.cs
/// <summary>
/// Adds a primitive rectangle path to the batch of figures to be rendered.
/// </summary>
/// <param name="pen">The pen supplying a color to render the path with.</param>
/// <param name="rect">The rectangle to be rendered.</param>
/// <param name="angle">The angle to rotate the rectangle by around its center in radians.  Positive values rotate clockwise.</param>
/// <exception cref="InvalidOperationException"><c>DrawPrimitiveRectangle</c> was called, but <see cref="Begin()"/> has not yet been called.</exception>
Adds a primitive rectangle path to the batch of figures to be rendered.
Adds a primitive rectangle path to the batch of figures to be rendered .
public void DrawPrimitiveRectangle (Pen pen, Rectangle rect, float angle)
        {
            _geometryBuffer[0] = new Vector2(rect.Left, rect.Top);
            _geometryBuffer[1] = new Vector2(rect.Right, rect.Top);
            _geometryBuffer[2] = new Vector2(rect.Right, rect.Bottom);
            _geometryBuffer[3] = new Vector2(rect.Left, rect.Bottom);
            DrawPrimitiveQuad(pen, _geometryBuffer, 0, angle);
        }
public void DrawPrimitiveRectangle ( Pen pen , Rectangle rect , float angle ) { _geometryBuffer [ 0 ] = new Vector2 ( rect . Left , rect . Top ) ; _geometryBuffer [ 1 ] = new Vector2 ( rect . Right , rect . Top ) ; _geometryBuffer [ 2 ] = new Vector2 ( rect . Right , rect . Bottom ) ; _geometryBuffer [ 3 ] = new Vector2 ( rect . Left , rect . Bottom ) ; DrawPrimitiveQuad ( pen , _geometryBuffer , 0 , angle ) ; }
Adds a primitive rectangle path to the batch of figures to be rendered.
Adds a primitive rectangle path to the batch of figures to be rendered .
DrawPrimitiveRectangle has not yet been called.
DrawPrimitiveRectangle has not yet been called .
pen
Pen
The pen supplying a color to render the path with.
The pen supplying a color to render the path with .
rect
Rectangle
The rectangle to be rendered.
The rectangle to be rendered .
angle
float
The angle to rotate the rectangle by around its center in radians.  Positive values rotate clockwise.
The angle to rotate the rectangle by around its center in radians . Positive values rotate clockwise .