ALLEGRO_VERTEX_BUFFER(3alleg5)

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

✨ ALLEGRO_VERTEX_BUFFER ✨

okay bestie, welcome to the ALLEGRO_VERTEX_BUFFER page from the Allegro reference manual, section 3alleg5 πŸ’– this one is short but she is mighty, so let's go 🫢


🌸 NAME 🌸

ALLEGRO_VERTEX_BUFFER β€” the Allegro 5 API πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro_primitives.h>

typedef struct ALLEGRO_VERTEX_BUFFER ALLEGRO_VERTEX_BUFFER;

πŸ¦‹ DESCRIPTION πŸ¦‹

so basically: this is a GPU vertex buffer πŸ‘‘ a little home for your vertices that lives on the GPU itself.

the whole point? you get to store your vertices on the GPU instead of yeeting them up there all over again every single time you draw something 😭 like, the alternative is re-uploading them afresh during every drawing operation, and honestly? not the vibe. this buffer said "not me, not today" πŸ’…

so you keep them stored, you keep drawing, and your draw calls stop doing that whole re-upload-every-time thing. iconic behaviour, no cap ✨


⭐ SINCE ⭐

5.1.3 β€” she's been around since then, a real veteran of the Allegro-verse 🌈


πŸ’œ SEE ALSO πŸ’œ


lowkey reminder: if you create it, you destroy it. don't be leaving orphaned buffers lying around, that's not main character energy πŸ™ˆ

and that's the whole page, fr fr πŸ“ this was ALLEGRO_VERTEX_BUFFER(3alleg5) from the Allegro reference manual β€” mwah, go slay your graphics code πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from