al_destroy_display(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– 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