XNA, 1 Graphics Card, 2 Screens

guest2013-1

guest
Joined
Aug 22, 2003
Messages
19,800
Reaction score
13
I'm busy messing around with XNA after trying (and failing) to do some decent graphics work on a Winform for a ScreenSaver my company wants (using a screen saver package I got inflates the size of the SCR by as much as 300% for some reason, and I need to keep this bitch as tiny as possible)

So far so "good" I guess. The problem comes in when a user has 2 screens. Now we don't run more than 1 graphics card, and most of the docs/forums out there goes on and on about the graphics card adapter and different cards and how to do whatever.

All I want is to duplicate what I do on the main screen, on a 2nd (or 3rd) screen if they have it plugged in.

In c# all i do is this:
Code:
Screen[] screens = Screen.AllScreens;

            foreach (Screen screen in screens)
                windowRect = Rectangle.Union(windowRect, screen.Bounds);

            this.Bounds = windowRect;
piss easy. now where is the XNA equivalent??
 
... XNA is a tool to create scene graphs, bounding boxes, sky boxes, etc.. It is going to get very hairy when you need to determine all the objects within the graph on the primary display and then create a second scene on a new monitor. To be honest i dont think XNA is the right tool for the job in this regard, you are better off using lower level directx or just standard win forms.
 
Top
Sign up to the MyBroadband newsletter
X