al_get_new_bitmap_samples(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 5 versions
, in ubuntu resolute, ubuntu stonking

✨ al_get_new_bitmap_samples ✨

okay bestie, so this one is from the Allegro 5 API reference manual πŸ’– it's a little getter function, super short page, but we're gonna give it the main character energy it deserves πŸ‘‘


🌸 NAME 🌸

al_get_new_bitmap_samples β€” Allegro 5 API, the read-the-setting-back bestie of al_set_new_bitmap_samples


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro.h>

int al_get_new_bitmap_samples(void)

no arguments, no drama, just vibes and an int πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically this function hands you back the value that was last set with al_set_new_bitmap_samples(3alleg5) β€” but only for the current thread, okay? that part matters, it's thread-local behavior, not global 🌈

and if literally nothing was ever set on this thread? it just gives you 0. no fuss, no mystery, no -1 weirdness, just a friendly little zero πŸ“


⭐ SINCE ⭐

5.2.1 β€” so it's not ancient, it's got that newer-era Allegro glow ✨

🚨 [Unstable API]: this is an experimental feature, bestie, and right now it only works for the OpenGL backend. so if you're on another backend, do not expect it to do the thing. consider yourself warned, fr fr πŸ’€

and that's the whole page!! tiny but mighty, we love a short-and-sweet getter 🫢

this little icon came to you courtesy of the Allegro reference manual, page al_get_new_bitmap_samples(3alleg5) β€” go set some samples with the setter, then come back and get them, slay πŸ‘‘πŸ’–

πŸ“¦ where this page comes from