al_destroy_mouse_cursor(3alleg5)
π al_destroy_mouse_cursor β Allegro 5 API
okay bestie, welcome to the Allegro 5 reference manual, page al_destroy_mouse_cursor π this one's short and sweet and honestly it's giving "cleanup era" β¨
πΈ NAME πΈ
al_destroy_mouse_cursor β the little function that says bye-bye to your cursor ππ (it's part of the Allegro 5 API, iykyk)
β¨ SYNOPSIS β¨
#include <allegro5/allegro.h>
void al_destroy_mouse_cursor(ALLEGRO_MOUSE_CURSOR *cursor)
like. that's it. that's the whole signature π«Ά one pointer, no return value, no drama.
π¦ DESCRIPTION π¦
This frees the memory used by the given cursor. that's the whole job, and she does it flawlessly π
No cap: ifcursorisNULL, this function has no effect. it just... doesn't do anything. no crash, no tantrum, no nothing. she's unbothered. she's at peace. π§βοΈβ¨
so if you're the kind of dev who calls destroy functions on possibly-NULL pointers just to be safe β go off, that's valid here π₯
π SEE ALSO π
al_create_mouse_cursor(3alleg5)β the one that makes the cursor, aka this function's other half π you literally cannot have one without the other, the way that they're a matched set fr fr
π cute sign-off π
that's the whole page, bestie!! brought to you by the Allegro reference manual, al_destroy_mouse_cursor(3alleg5) β go free your cursors responsibly, and remember: every al_create_mouse_cursor deserves its al_destroy_mouse_cursor πβ periodt π
π
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- ubuntu resolute: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- ubuntu stonking: allegro5-doc 2:5.2.11.3+dfsg-1 Β· Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms