LilyPath/DrawBatch.cs
/// <summary>
/// Adds a primitive circle path to the batch of figures to be rendered using a given number of subdivisions.
/// </summary>
/// <param name="pen">The pen supplying the color to render the path with.</param>
/// <param name="center">The center coordinate of the circle.</param>
/// <param name="radius">The radius of the circle.</param>
/// <param name="subdivisions">The number of subdivisions (sides) to render the circle with.</param>
/// <exception cref="InvalidOperationException"><c>DrawPrimitiveCircle</c> was called, but <see cref="Begin()"/> has not yet been called.</exception>
Adds a primitive circle path to the batch of figures to be rendered using a given number of subdivisions.
Adds a primitive circle path to the batch of figures to be rendered using a given number of subdivisions .
public void DrawPrimitiveCircle (Pen pen, Vector2 center, float radius, int subdivisions)
        {
            if (!_inDraw)
                throw new InvalidOperationException();
            if (pen == null)
                throw new ArgumentNullException("pen");
            BuildCircleGeometryBuffer(center, radius, subdivisions, false);
            DrawPrimitivePath(pen, _geometryBuffer, 0, subdivisions, PathType.Closed);
        }
public void DrawPrimitiveCircle ( Pen pen , Vector2 center , float radius , int subdivisions ) { if ( ! _inDraw ) throw new InvalidOperationException ( ) ; if ( pen == null ) throw new ArgumentNullException ( " " ) ; BuildCircleGeometryBuffer ( center , radius , subdivisions , false ) ; DrawPrimitivePath ( pen , _geometryBuffer , 0 , subdivisions , PathType . Closed ) ; }
Adds a primitive circle path to the batch of figures to be rendered using a given number of subdivisions.
Adds a primitive circle path to the batch of figures to be rendered using a given number of subdivisions .
DrawPrimitiveCircle has not yet been called.
DrawPrimitiveCircle has not yet been called .
pen
Pen
The pen supplying the color to render the path with.
The pen supplying the color to render the path with .
center
Vector2
The center coordinate of the circle.
The center coordinate of the circle .
radius
float
The radius of the circle.
The radius of the circle .
subdivisions
int
The number of subdivisions (sides) to render the circle with.
The number of subdivisions ( sides ) to render the circle with .