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:
- Problem with function 'al_draw_text'
- al_destroy_display & al_create_display CONT.
- linking on ubuntu
- Screen flipping varying speeds
- Using Sine And Cosine For Rotation
- Shooting Ball From Rotating Bitmap
- Display Mode removes window controls
- Saving Bitmaps
- Problem with al_creat_bitmap
- A5 : timer issue
Other recent discussions:
- Mouse Click Inside Timer Function
- A5 Fullscreen Vs Windowed
- Convert *bitmap to char buffer
- al_load_bitmap question
- Mouse Lag / Not Keyboard
- MOUSE question
- Odd event.mouse.x & y values
- Is using TTFs really that complicated?
- Having Trouble with exit(1) - Stalling Program
- My second game, space invader simplified