0

I'm trying to draw transformed textures behind each other,but drawing in a different spriteBatch.Begin(...,matrix); spriteBatch.End(); section makes the layering not work, the last drawn texture is on the top.

Is it possible changing the matrix after the Begin method, or is there any other solution?

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Sell Lot
  • 33
  • 1
  • 5
  • why don't you transform your textures using the spriteBatch.Draw() - Parameters? – vinzenz Oct 20 '12 at 13:56
  • it is not just simply rotation and movement, I'm rotating, replacing, rotating, replacing it in 3D by a matrix. I don't think it is possible giving a matrix parameter to Draw(), is it? – Sell Lot Oct 20 '12 at 18:31

1 Answers1

0

AFAIK is this not possible. I would recommend you to write your own spritebatch using the graphicsdecive.

vinzenz
  • 669
  • 3
  • 14