Sign in to follow this  
marc001

2 full screen in directX

Recommended Posts

Hello, I would like to know how to solve the following problem: I have an application that must run in xp and who should manage two monitors in full screen with directX (on the same video card) . I would like to know if it is possible to have two simultaneous full screen with directx (I can have a full screen + one windowed but not two full screen) Is it technically possible to use directx on 2 full-screen? I work with Borland C++ builder and directx 9.0 Thank you

Share this post


Link to post
Share on other sites
Yes this can be done.

First you need to add D3DCREATE_ADAPTERGROUP_DEVICE to your behavior flags. Additional you need to provide an array of D3DPRESENT_PARAMETERS structs (one element per display) instead of a single one.

The device will then have separate swap chains for each display.

Share this post


Link to post
Share on other sites
The adapter group is one option (often the best option). All GPU resources created by the device can be shared for both screens this way.

You can also create a second device (works for two cards, as well as dual-output cards, or both). Upon creation of the second device, the first device is immediately lost. Simply reset the device and they should both work. The problem with this method is that no resources are shared. Textures must be loaded for each device. Meshes must be loaded for each device. Shaders must be compiled for each device. You have to keep track of far too much, but it can be made to work.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this