Basic Shapes Lib

Hi all!

Can anyone point me to a nice “2d basic shapes” library, to work with ?

Many thanks,

apocsantos

XNA.com has a few samples for 2D and 3D shapes

the one I use for eveything:


example project:

Cheers!

When it’s all about drawing 2D lines, rectangles and circles, then I use MonoGame.Extended.

It offers that functionality as extension-methods on the SpriteBatch-type.

Example:

DrawLine(this SpriteBatch spriteBatch, Vector2 point1, Vector2 point2,
            Color color, float thickness = 1f)