C3 user on bitbucket has published a nice utility class for creating 2D primitives. They add extension methods to the SpriteBatch class. The repository is here: https://bitbucket.org/C3/2d-xna-primitives/wiki/Home
Welcome
Welcome to the new home of the 2D XNA Primitives project, now using the Mercurial repository on Bitbucket! Now compatible with Windows phones.
Feature Reference
All public methods provided by this library are extension methods, which means that you can access them directly through your own SpriteBatch instance, as if these methods were built into the SpriteBatch class. If you call methods this way, you can ignore the first parameter for all of the following calls.
General methods
Drawarc
Drawcircle
Drawline
DrawRectangle
Fillillectangle
Putpixel
borrillis
source share