1

Closed

Draw Primitives documentation needs to be updated to call DrawInternal

description

Currently the documentation suggests overriding draw and using spritebatch.
 
Drawing Lines:
 
protected override void DrawInternal( GameTime gameTime )
    {
        base.DrawInternal( gameTime );
 
        SpriteRenderer.DrawLine( Color.Blue, Vector2.Zero, Vector2.One * 200.0f, 3 );
    }
 
Drawing Circle
protected override void DrawInternal( GameTime gameTime )
    {
        base.DrawInternal( gameTime );
 
         SpriteRenderer.DrawCircle( Vector2.One * 200.0f, 50.0f, Color.Blue, 3 );
    }
 
Drawing Polygon
   protected override void DrawInternal( GameTime gameTime )
    {
        base.DrawInternal( gameTime );
 
         SpriteRenderer.DrawPolygon( myPolygonsPoints, myPolygonsPoints.Length, Color.Blue, 3 );
    }
Closed Feb 10, 2011 at 7:44 AM by robzhu
Fixed this section of the docs.

comments