The spritebatch tag has no wiki summary.
19
votes
2answers
5k views
How exactly does XNA's SpriteBatch work?
To be more precise, if I needed to recreate this functionality from scratch in another API (e.g. in OpenGL) what would it need to be capable of doing?
I do have a general idea of some of the steps, ...
4
votes
1answer
1k views
Repeat texture in libgdx
How to fill region with repeated texture? Now I'm using next method:
spriteBatch.begin();
final int tWidth = texture.getWidth();
final int tHeight = texture.getHeight();
for (int i = 0; i < ...
2
votes
2answers
549 views
XNA: Regarding SpriteBatch.Draw()
I was trying to develop a very simple ping pong game using XNA.
In my Draw() I am drawing the player paddles first then the ball as follows:
spriteBatch.Draw(myPlayer, myPlayer1Pos, null, ...
0
votes
1answer
1k views
XNA 4.0 - Mixing 3D and 2D - SpriteBatch putting weird alpha texture over whole scene
I am working on a game in XNA 4.0 that has been entirely in 3D so far but now I want to incorporate a HUD.
I have tried doing a simple test using spriteBatch as such:
spriteBatch.Begin();
...