al_destroy_display(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

al_destroy_display(3alleg5) β€” Allegro 5 API πŸ’–

✨ NAME ✨

  • al_destroy_display β€” Allegro 5 API πŸ’…

🌈 SYNOPSIS 🌈

okay so here's the exact summoning circle, bestie ✨

#include <allegro5/allegro.h>

void al_destroy_display(ALLEGRO_DISPLAY *display)

πŸ¦‹ DESCRIPTION πŸ¦‹

Destroy a display. that's the whole job, periodt. πŸ’₯

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's the special implied call, bestie πŸ’…

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. no cap, check your threads first β€” this is the part where chaos could happen. 😭


🌸 SEE ALSO 🌸


Bye bestie! πŸ’– Source/version: Allegro reference manual. Page: al_destroy_display(3alleg5). Date: not listed on this page. πŸŽ€

πŸ“¦ where this page comes from