al_get_new_bitmap_samples(3alleg5)
β¨ 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
- 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