ALLEGRO_INDEX_BUFFER(3alleg5)
π ALLEGRO_INDEX_BUFFER π
ok so bestie, welcome to the 3alleg5 corner of the Allegro 5 API β¨ this one's short and sweet but it's genuinely iconic, so let's go πΈ
β¨ SYNOPSIS β¨
#include <allegro5/allegro_primitives.h>
typedef struct ALLEGRO_INDEX_BUFFER ALLEGRO_INDEX_BUFFER;
like, that's the whole thing. it's a struct, it's opaque, we move π
π DESCRIPTION π
so <rainbow>ALLEGRO_INDEX_BUFFER</rainbow> is a GPU index buffer π¦ and what that lets you do is store the indices of vertices that live in a vertex buffer right there on the GPU, instead of re-uploading them fresh every single time you draw something.
basically? no more yeeting your indices across the bus every frame. they just live there. main character energy, honestly π
β SINCE β
5.1.8 β so it's been around a minute, she's established π
π«Ά SEE ALSO π«Ά
al_create_index_buffer(3alleg5)β you make one of these bad boys πal_destroy_index_buffer(3alleg5)β and you clean up after yourself, periodt π
k that's the page!! this was the Allegro reference manual, section 3alleg5, and yeah no date on the footer bestie so we're keeping it timeless π
β¨ bye ily, go index something π¦πΈ
π¦ 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