A group of sprites that can all be drawn with the same settings

learn more… | top users | synonyms

2
votes
1answer
359 views

Should I go with SpriteBatch or just 3D with Z component always zero?

I'm designing a platformer and beginning to code the viewing engine of the game. Now, I have to make a key decision: Should I just use SpriteBatch to draw all the 2D stuff, as there is no 3D, or ...
1
vote
4answers
551 views

SpriteBatch.Draw() rectangle is different from destinationRectangle passed in

When I ask SpriteBatch to draw a rectangle as within the following method : public static void DrawSolidRectangle(Rectangle rectangle, Color color) { // the output from this is shown ...
3
votes
2answers
1k views

XNA C#: How can I prevent blurring when drawing from a RenderTarget2D?

I'm making a game and I want the end graphics to look chunky and pixellated, so I'm drawing from the spritebatch onto a RenderTarget2D which is 1/4th the size of the actual backbuffer, and then ...
5
votes
1answer
715 views

How do I configure the clipping region when drawing with XNA's SpriteBatch?

I have a SpriteBatch that is set to draw to a RenderTarget2D that is 500 pixels larger in both height and width. Whenever I draw to a point outside of the physical screen dimensions, it will not draw ...
4
votes
1answer
857 views

How can I rotate a Texture2D into / out of the screen?

I am drawing a Texture2D onto the screen and have the need to rotate the texture forward, in a 3D way. I'm using the SpriteBatch Draw() method and it only allows limited 2D rotation around the Z axis....
4
votes
1answer
847 views

Using raw vertex information for sprites rather than SpriteBatch in XNA

I have been wondering whether using SpriteBatch is the best option. Obviously for prototyping or small games it works well. However, I've been wanting to apply techniques such as shaders and lighting ...