al_set_new_bitmap_depth(3alleg5)

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

✨ 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