XNA旋转纹理2D [英] XNA Rotate Texture 2D

查看:95
本文介绍了XNA旋转纹理2D的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在XNA旋转纹理。我知道,当它绘制我可以旋转它,但我想的Texture2D变量是旋转的质感。有没有办法做到这一点?

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?

推荐答案

使用的RenderTarget,绘制纹理旋转到的RenderTarget,采取的质地和保存。

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

这篇关于XNA旋转纹理2D的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆