al_get_new_bitmap_depth(3alleg5)

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

✨ NAME ✨

al_get_new_bitmap_depth β€” the Allegro 5 API glow-up you didn't know you needed πŸ’–

okay bestie, this is a lil function from the Allegro 5 manual and honestly? she's tiny but she matters. let's get into it 🫢


🌸 SYNOPSIS 🌸

#include <allegro5/allegro.h>

int al_get_new_bitmap_depth(void)

no arguments, no drama, just vibes ✨


πŸ’… DESCRIPTION πŸ’…

so basically, this function hands you back the value that's currently set by al_set_new_bitmap_depth(3alleg5) β€” but only on the current thread, okay? thread-local queen behavior πŸ‘‘

and if literally nothing was set? you get 0. zero. nada. the void. πŸ’€

fr fr that's the whole thing. 0 means "nobody set a depth here", anything else means someone did.

πŸŽ€ SINCE πŸŽ€

5.2.1 β€” she's been around for a minute, periodt πŸ’œ

[Unstable API]: okay so this is the part where I hold your hand 🫢 β€” this is an experimental feature, and currently it only works for the OpenGL backend. that's not me being dramatic, that's just what it says. so don't go expecting it to slay on every backend, bestie 😭

and that's the tea β€” this page came straight out of the Allegro reference manual (the 3alleg5 corner of the internet), so if you ever forget where you read it, that's the source πŸ‘‘

okay bye ily, go set some bitmap depths responsibly πŸ¦‹βœ¨

πŸ“¦ where this page comes from