al_destroy_vertex_buffer(3alleg5)
β¨ al_destroy_vertex_buffer β¨
okay bestie, welcome to the 3alleg5 manual, aka the Allegro 5 API docs, and today we're doing a lil cleanup arc π
πΈ NAME πΈ
al_destroy_vertex_buffer β the Allegro 5 API function that yeets a vertex buffer out of existence π¦
π SYNOPSIS π
#include <allegro5/allegro_primitives.h>
void al_destroy_vertex_buffer(ALLEGRO_VERTEX_BUFFER* buffer)
no cap, that's the whole signature. short king π
β¨ DESCRIPTION β¨
So like, this function destroys a vertex buffer. That's it, that's the job. It takes your buffer and it's gone. bye bye. π
And here's the polite part: if you pass it NULL, it literally does nothing. No crash, no drama, no screaming into the void. It just looks at your NULL and goes "ok bestie, noted" and moves on. Iconic behaviour honestly. π«Ά
β οΈ heads up: destroyed means destroyed. Don't be out here using that buffer pointer afterwards, that's giving undefined behaviour energy π
π°οΈ SINCE π°οΈ
5.1.3 β so if you're on anything older, this function is not gonna show up for you, sorry babe π
π SEE ALSO π
(yes, you make it with one and destroy it with the other, that's the circle of life π)
that's the whole page, periodt. this was the Allegro reference manual, brought to you by the 3alleg5 girlies, and if the date on this thing matters to you then just know it's the date stamped on the original page β go check it, I'm not making one up π mwah, go destroy responsibly πβ¨
π¦ 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