Full Screen On Multiple Monitors With XNA

跟風遠走 提交于 2019-12-24 08:09:13

问题


I'm building a special application with XNA that is made for computers with multiple monitors. The problem is that if I tell my XNA application to become fullscreen, it only covers the main screen. How can I make sure that my application runs full screen across all of the screens?


回答1:


This doesn't sound trivial at all. What happens when the screens are varying resolutions and aspect ratios? You'll have to create a rendertarget for each of the screens individually. There's no way to mesh them all into one giant rectangle reliably. Have a look at the GraphicsAdapter class, which should manage all of the graphics adapters available. I've never used multimonitor in a game but that's where I'd start. See if you can create multiple graphics devices or at least switch adapters between draw calls in order to render different targets to different screens.



来源:https://stackoverflow.com/questions/11081792/full-screen-on-multiple-monitors-with-xna

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!