ALLEGRO_INDEX_BUFFER(3alleg5)

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

πŸ’– 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 🫢


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