Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我目前正在开发一款游戏,并且正在尝试实现颜色键冲突。我遵循未采用教程的道路,一直工作到从渲染目标获取纹理,这在 XNA 4 中不可用,我似乎没有找到等价物?任何帮助:D
提前致谢 !!
在 XNA 4.0 中,RenderTarget2D 类继承自 Texture2D,这意味着您可以简单地将渲染目标转换为纹理:
Texture2D texture = (Texture2D)renderTarget;