LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: low_cm on August 02, 2005, 07:02:13

Title: Multi Displaydevice Support???
Post by: low_cm on August 02, 2005, 07:02:13
Hello

Is it possible to integrate support for multiple displays?
So that would be nice on gfx-boards with support for two or more monitors.
Alternatively this would also support older systems with more than only one gfx-board inside (for e.g. an extra 3dfx voodoo 1/2 board).

Bye
Title: Multi Displaydevice Support???
Post by: Matzon on August 02, 2005, 09:03:25
you should be able to create a displaymode the size of the two monitors and render to that ?
Title: Multi Displaydevice Support???
Post by: low_cm on August 02, 2005, 11:09:20
Different devices (on a single PC) might have different sets of graphicmodes available.
If you have a gfx-card with multiple outputs, it is based on the monitor or TFT you are using (try to image you have two monitors with same size from different vendors).
On the other side, if you have 2 independent gfx-boards inside (for e.g. a Riva TNT in combination with an old Voodoo 2), it might be good to have the option to choose the gfx-card. This might be also interesting for developers for testing their code on different hardware.

By default the graphics device that is currently activated should be used in future implementations.
But it should be possible to change the output device.

Bye
Title: Multi Displaydevice Support???
Post by: Matzon on August 02, 2005, 11:50:47
LWJGL wont support that. You should activate the display of choice by making it primary. At least thats what I do - and works fine.

As for making a game that uses multiple devices - it's just not something that is used all that much, and I think that it will be close to impossible to make it work reliably on all 3 platforms.