Nez.Portable/Graphics/PrimitiveBatch.cs
/// <summary>
/// End is called once all the primitives have been drawn using AddVertex.
/// it will call Flush to actually submit the draw call to the graphics card, and
/// then tell the basic effect to end.
/// </summary>
End is called once all the primitives have been drawn using AddVertex.
it will call Flush to actually submit the draw call to the graphics card, and
then tell the basic effect to end.
End is called once all the primitives have been drawn using AddVertex . it will call Flush to actually submit the draw call to the graphics card and then tell the basic effect to end .
public void end()
        {
            if (!_hasBegun)
                throw new InvalidOperationException("Begin must be called before End can be called.");
            flushTriangles();
            flushLines();
            _hasBegun = false;
        }
public void end ( ) { if ( ! _hasBegun ) throw new InvalidOperationException ( " " ) ; flushTriangles ( ) ; flushLines ( ) ; _hasBegun = false ; }
End is called once all the primitives have been drawn using AddVertex.
End is called once all the primitives have been drawn using AddVertex .
// Draw whatever the user wanted us to draw