al_get_num_display_modes
int al_get_num_display_modes(void)
Introduced in 5.0.0
Get the number of available fullscreen display modes for the current set of display parameters. This will use the values set with al_set_new_display_refresh_rate, and al_set_new_display_flags to find the number of modes that match. Settings the new display parameters to zero will give a list of all modes for the default driver.
See also: al_get_display_mode
Examples: ex_display_options, ex_monitorinfo
Most helpful discussions:
- Allegro 5.2.2 Setup
- Drawing text slows down FPS dramatically
- al_draw_bitmap_region does not return
- Can't enumerate fullscreen modes before a display is created
- weird mouse issue
- ALLEGRO_RESIZABLE & Mouse Pointer Collision Detection
- Strange lags in really simple project
- al_draw_filled_rectangle v. slow compared to al_draw_filled_rectangle
- A5 setting color depth problem (Linux)
- Trying Allegro, can't get to compile with CodeBlocks!
Other recent discussions:
- Extreme slow down on Windows
- Fullscreen on Mac OSX Mountain Lion not working
- al_get_display_mode on Windows and Linux
- Allegro5 Full-Screen Problem
- I've been staring at the same sections of code for two hours...
- _al_wgl_get_display_mode not returning format
- ALLEGRO_FULLSCREEN and al_flip_display problem
- Patch for _al_d3d_get_display_mode
- Problem in windowed mode using Visual Studio 2010 and Windows 7
- Sound load crash.