Caution: This version of this document is no longer maintained. For the latest documentation, see http://www.qnx.com/developers/docs.

PgGetVideoModeList()

Query a graphics driver for a list of its supported video modes

Synopsis:

int PgGetVideoModeList( PgVideoModes_t *mode_list );

Library:

ph

Description:

This function queries the graphics driver for a list of video modes that it supports. The list is an array of short entries that represent mode numbers that the drivers use to identify a video mode.


Note: You must target this function at a specific card by calling PdSetTargetDevice(). PgGetVideoModeList() blocks until the operation is complete.

The mode_info argument is a pointer to a PgVideoModes_t structure in which to store the mode information. This structure has at least the following members:

unsigned short num_modes
The number of modes in the list.
unsigned short modes[127]
The mode list.

Returns:

0
Success.
-1
An error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PdSetTargetDevice(), PgGetGraphicsHWCaps(), PgGetVideoMode(), PgGetVideoModeInfo(), PgSetVideoMode()

Video modes in the Raw Drawing and Animation chapter of the Photon Programmer's Guide