How to automatically support single or dual monitors in XNA in Windows 7?

I am creating a game application using Microsoft XNA that will run on a single screen with an open screen (projector) with the controls on the laptop screen (Windows 7.). When the second monitor is not available, I would like only the screen open for viewing on the laptop screen. The proportions of the screens will be the same.

Is there a library that allows us to do this automatically or, in the worst case, change the setting?

+3
source share
2 answers

Check for two monitors with GraphicsAdapter.Adapters.Count()

, (). , , .

, :

graphics.GraphicsDevice.Present(form1.Handle);

public-face.

, WinForms XNA http://create.msdn.com/en-US/education/catalog/sample/winforms_series_1

:

  • , ( ).
  • XNA WinForms
+3

, , - .

RenderTarget2D ( , rendertarget), rendertarget . , .

, , rendertarget . tcp- . , .

0

All Articles