LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: Peter M Ashford on November 30, 2012, 00:35:18

Title: Choosing monitor to display on
Post by: Peter M Ashford on November 30, 2012, 00:35:18
I've searched Google & this forum but I can't find how to select which monitor to use on a multiple monitor setup.  Please help!

Cheers!

Kaff.
Title: Re: Choosing monitor to display on
Post by: abcdef on November 30, 2012, 10:14:19
Depends if you have an nvidea or ati card with the supported extensions

Nvidia

You need the WGL_NV_gpu_affinity extensions

http://developer.download.nvidia.com/opengl/specs/WGL_nv_gpu_affinity.txt (http://developer.download.nvidia.com/opengl/specs/WGL_nv_gpu_affinity.txt)

ATI

You need the AMD_gpu_association extensions

http://www.opengl.org/registry/specs/AMD/wgl_gpu_association.txt (http://www.opengl.org/registry/specs/AMD/wgl_gpu_association.txt)

quick glance of the javadoc for lwjgl could not see them so you might need to request them to be added. But be aware, you need drivers that support this and as i have never used it, they might not work :)
Title: Re: Choosing monitor to display on
Post by: spasi on November 30, 2012, 10:50:29
There's plan to add support for the GPU affinity/association extensions in LWJGL 3.0.
Title: Re: Choosing monitor to display on
Post by: Peter M Ashford on December 01, 2012, 13:14:33
That looks like its for selecting from multiple GPUs rather than one of many monitors?
Title: Re: Choosing monitor to display on
Post by: spasi on December 01, 2012, 14:38:47
Enumerating the active monitors and selecting which one to use is also an option for 3.0, but I'm not sure if we'll provide a cross-platform wrapper or you'll have to fiddle with the platform-specific APIs (which will be publicly exposed in 3.0).
Title: Re: Choosing monitor to display on
Post by: Peter M Ashford on December 03, 2012, 22:56:34
Alright.  Either option would be fine for me.  When is v3.0 out?
Title: Re: Choosing monitor to display on
Post by: spasi on December 04, 2012, 01:16:29
It's too early to give an accurate estimation, work on it has started very recently. You can follow the LWJGL 3.0 RFE thread for more information.