Game Development Community

Using a second monitor?

by Markus Nuebel · in Torque Game Engine · 01/19/2004 (11:59 am) · 2 replies

Hi.

I noticed the parameter: $pref::Video::monitorNum in defaults.cs and thought it might start the application/game window on the monitor specified.
(E.g. 0 for using the primary monitor, 1 for using a secondary monitor)

But the variable does not seem to have any references in the engine code (it just hangs around in the script file).

Is there a way, to have torque create the game window on a secondary window?
(I want to have the 3D application on one monitor and the debugger on another).

What's this $pref::Video::monitorNum variable for? (A leftover of some test code or some legacy stuff?)

Best regards
Markus

#1
01/19/2004 (8:56 pm)
You could tweak the platform code. On Windows, you have to enumerate the displays, then choose the one you want. On X, you have to specify which display you want to connect to. On Mac... I assume something similar to windows.

Actually, Mac does use this variable. See engine\platformMacCarb\macCarbOGLVideo.cc(1435) and following.
#2
01/20/2004 (3:10 am)
Thanks, Ben.

I will check this out.

-- Markus