al_set_new_bitmap_depth(3alleg5)
β¨ NAME β¨
al_set_new_bitmap_depth β bestie, this is the Allegro 5 API function that sets the depth-buffer depth for brand-new bitmaps π
π SYNOPSIS π
#include <allegro5/allegro.h>
void al_set_new_bitmap_depth(int depth)
π¦ DESCRIPTION π¦
Okay so, listen. al_set_new_bitmap_depth sets the depthbuffer depth that gets used by newly created bitmaps β and yes, specifically on the current thread β but only if those bitmaps are actually used with al_set_target_bitmap(3alleg5). Like, that's the whole condition, no cap. π₯
And the tea on the value 0: passing 0 means no depth-buffer will be created when you're drawing into the bitmap. And plot twist β that's the default already. So if you do nothing, congrats, you already have it. π
πΈ SINCE πΈ
5.2.1 β she's a newer girlie, be nice to her π«Ά
[Unstable API]: This is an experimental feature and currently only works for the OpenGL backend. So do not come for me if it acts up on other backends β it literally said it was unstable, iykyk. π
π SEE ALSO π
and that's the whole vibe check, bestie β¨ β this page lives in the Allegro reference manual, filed under section 3alleg5, and it's your girl al_set_new_bitmap_depth(3alleg5) signing off πππ¦ go make some bitmaps, slay, periodt. π
π¦ 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