al_destroy_display(3)
π NAME π
al_destroy_display β Allegro 5 API. This is the al_destroy_display(3) page from the Library Functions Manual, and we are literally here to destroy a display (safely, bestie π
).
πΈ SYNOPSIS πΈ
#include <allegro5/allegro.h>
void al_destroy_display(ALLEGRO_DISPLAY *display)
π¦ DESCRIPTION π¦
Okay so al_destroy_display destroys a display. That's the main-character job π.
But here's the important tea: 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. No cap π«Ά.
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. Like, do the vibe check first, fr fr π.
β¨ SEE ALSO β¨
Source/version: that's the Allegro reference manual, page al_destroy_display(3) β and there's no date listed on this footer, so consider that your cute little sign-off, mwah ππ.
π¦ where this page comes from
- arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms