get_gfx_mode_list (3) Linux Manual Page
get_gfx_mode_list – Obtains a list of available video modes. Allegro game programming library.
Synopsis
#include <allegro.h> GFX_MODE_LIST *get_gfx_mode_list(int card);
Description
Attempts to create a list of all the supported video modes for a certain graphics driver, made up from the GFX_MODE_LIST structure, which has the following definition:
typedef struct GFX_MODE_LISTThe mode entry points to the actual list of video modes.
{
int num_modes;
GFX_MODE *mode;
} GFX_MODE_LIST;
typedef struct GFX_MODEThis list of video modes is terminated with an { 0, 0, 0 } entry.
{
int width, height, bpp;
} GFX_MODE;
Note that the card parameter must refer to a _real_ driver. This function fails if you pass GFX_SAFE, GFX_AUTODETECT, or any other "magic" driver.
