1. C3
  2. Untitled project
  3. 2D XNA Primitives

Wiki

Clone wiki

2D XNA Primitives / Home

Welcome

Welcome to the new home of the 2D XNA Primitives project, now using a Mercurial repository on Bitbucket! Now compatible with Windows Phones.

Function Reference

All of the public methods provided by this library are extension methods, which means that you can access them directly through your very own SpriteBatch instance as if these methods were built-in to the SpriteBatch class. If you call the methods in this way, you can ignore the first parameter of *all* of the following calls.

Public Methods
DrawArc
DrawCircle
DrawLine
DrawRectangle
FillRectangle
PutPixel

Note that these methods may not very efficient and should either be used sparingly, or for debugging purposes. If you are aiming for performance, create a Texture2D and draw that instead.

Changelogs


This work is licensed under the zlib license, which is pretty close to saying: do what you want.

Updated