Game Development Community

getresolutionlist()

by Steve D · in Torque Game Builder · 11/06/2009 (11:45 am) · 2 replies

I searched through many forum posts but can't find the obvious answer to my question - this command takes 1 argument, %device, can anyone tell me exactly what I need to put in there to get a list of supported resolutions?

#1
11/06/2009 (12:04 pm)
Quote:
Purpose
Use the getResolutionList function to get a semicolon separated list of legal resolutions for a specified device.

Syntax
deviceName – A string containing a supported display device.

Returns
Returns a tab separated list of valid display resolutions for devicename.

Notes
Resolutions are always in the form: width height bpp, where width and height are in pixels and bpp is bits-per-pixel.

See Also
getDesktopResolution, getDisplayDeviceList, setRes, setScreenMode, switchBitDepth

echo("Possible resolutions :" @ getResolutionList( "OpenGL" ) );

source
#2
11/06/2009 (12:07 pm)
Thank you! I was hoping it would have been a more complex answer to make me feel less retarded :)