Dual monitor stuff

posted in OMG NUB! for project Gorgon
Published August 13, 2012
Advertisement
sitelogo.pngSo here's a screenshot of the dual monitor code in action:
DualMonitor1-256x192.png
It's not much to look at, but it was a major pain in the ass to get working, and does indeed work. Basically you create 2 forms, and 2 swap chains and set both swap chains to full screen and then add some special code to handle cases where focus is lost/restored on the primary form.
Gorgon would normally handle focus loss to reset your full screen mode for you when focus is returned (this is due to a bug in WinForms and DXGI). And that's all well and good, but this code really doesn't work well with multiple monitor situations. So, there's a flag to tell Gorgon to turn off the automatic mode reset on focus, and that will let you, the user, handle the transition when dealing with multiple monitors. It's not an ideal situation, but it works
It's a bit complicated to set up, but there'll be an example included with Gorgon on how to use dual monitor setups that'll guide you through the process.

Source
Previous Entry Look at my balls
Next Entry Gorgon in text mode
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement

Latest Entries

Gorgon 3.2

10618 views

Gorgon v3.1.46.255

3797 views

Gorgon v3.1.45.248

3403 views

Gorgon v3.1.29.243

4736 views

Gorgon v3.1

4524 views

Gorgon Update #10

3522 views

Gorgon Update #9

3689 views

Gorgon Update #8

3432 views

Gorgon Update #7

3660 views

v3.0 Release

4209 views
Advertisement