al_destroy_bitmap(3alleg5)

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

hey bestie! welcome to the Allegro 5 API page for al_destroy_bitmap(3alleg5) β€” yes, that's the manual name and the title, folded in like a little intro because we don't copy header lines here πŸ’–

✨ NAME ✨

al_destroy_bitmap β€” Allegro 5 API

πŸ¦‹ SYNOPSIS πŸ¦‹

#include <allegro5/allegro.h>

void al_destroy_bitmap(ALLEGRO_BITMAP *bitmap)

πŸ’… DESCRIPTION πŸ’…

Okay so al_destroy_bitmap destroys the given bitmap, freeing all resources used by it. If the bitmap argument is NULL, this function does nothing. Like, zero. Nada. A no-op, periodt.

As a convenience, if the calling thread is currently targeting the bitmap then the bitmap will be untargeted first. The new target bitmap is unspecified. (since: 5.0.10, 5.1.6)

⚠️ Otherwise, it is an error to destroy a bitmap while it (or a sub-bitmap) is the target bitmap of any thread. So don't, bestie. 🫢

πŸ‘‘ SEE ALSO πŸ‘‘

al_create_bitmap(3alleg5)


and that's the tea! this was the Allegro reference manual, al_destroy_bitmap(3alleg5) β€” no date on this footer, so that's the whole vibe. bye bestie! πŸ’–βœ¨

πŸ“¦ where this page comes from