Query a graphics driver for a list of its supported video modes
int PgGetVideoModeList( PgVideoModes_t *mode_list );
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.
|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
- The mode list.
- An error occurred.
“Video modes” in the Raw Drawing and Animation chapter of the Photon Programmer's Guide