Function Get-Video-Modes

Part of:

package glfw
( get-video-modes < maxcount > )
Parameters
maxcount
Maximum number of video modes that list vector can hold.

Return values
The function returns the number of detected video modes (this number will never exceed maxcount).
The list vector is filled out with the video modes that are supported by the system.

Description
The function returns a list of supported video modes. Each video mode is represented by a
list of the form:
(width height redbits greenbits bluebits)

Notes
The returned list is sorted, first by color depth (RedBits + GreenBits + BlueBits), and then by
resolution (Width × Height), with the lowest resolution, fewest bits per pixel mode first.