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