al_destroy_mouse_cursor(3alleg5)

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

πŸ’… 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: if cursor is NULL, 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