XNA Rotate Texture 2D

前端 未结 3 715
灰色年华
灰色年华 2021-01-18 13:44

I\'d like to rotate a Texture in XNA. I know I can rotate it when it is drawn, but I would like the Texture2D variable to be the rotated texture. Is there any way to do this

3条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-18 14:12

    Use RenderTarget, draw your texture rotated into the RenderTarget, take the texture and save it.

提交回复
热议问题