al_destroy_display
void al_destroy_display(ALLEGRO_DISPLAY *display)
Introduced in 5.0.0
Destroy a display.
If the target bitmap of the calling thread is tied to the display, then it implies a call to "al_set_target_bitmap(NULL);" before the display is destroyed.
That special case notwithstanding, you should make sure no threads are currently targeting a bitmap which is tied to the display before you destroy it.
See also: al_set_target_bitmap
Examples: ex_blend_bench, ex_display_options, ex_drawpixels, ex_dualies, ex_fs_resize, ex_fs_window, ex_mouse_focus, ex_multiwin, ex_noframe, ex_resize2, ex_threads, ex_threads2, ex_warp_mouse, ex_windows, ex_winfull
Most helpful discussions:
- how to make a game menu
- Pixel shader- how do I get the source coordinate?
- Single-pixel precision issues with GTX 500 series
- Filesystem access on android
- No windowed mode on Raspberry Pi Model B+?
- Scaling down runtime created bitmaps makes them transparent
- Strange frame skipping
- Problem in Allegro 5.2.4 Timer!
- al_uninstall_system excutes a function called "shutdown" if present
- Drawing Issue
Other recent discussions:
- al_draw_scaled_bitmpa not working if called more than 1 time
- Shader Puzzle aka Reverse Engineering cool effect
- Unexpected error in primitive al_draw_circle (aka Return Of The Bad Programmer)
- What's the easiest way to distribute my Allegro 5 game to buddies?
- 60 FPS limit in linux?
- Fullscreen on other than main screen?
- Audio seems overly complicated :(
- Install Allegro 5.2.4.1 on Win10
- Allegro 5 basic game loop
- Error Message when program finishes