XNA 2d drawing library
Is there any free XNA 2d drawing 开发者_运维技巧library?
I would like support for common drawing operation and effects.
There isn't one that I know of(and I spent a good while looking). Your best bet is just to use 3d primitive-drawing (as described here). Or, if you want to draw lines, you could just take a 1x1 pixel sprite and expand the source-rectangle as needed.
There is a PrimitiveBatch class in the Nuclex Framework: http://nuclexframework.codeplex.com/.
It's in the namespace Nuclex.Graphics.Batching.
精彩评论