al_set_new_bitmap_depth(3)

πŸ“¦
version 5.2.11.3 Β· 3 versions
, in arch rolling

πŸ’– al_set_new_bitmap_depth(3) πŸ’–

okay bestie, this is the Allegro reference manual page for the Allegro 5 API, and the main character is al_set_new_bitmap_depth β€” say that three times fast, i dare you πŸ’…

🌸 NAME 🌸

al_set_new_bitmap_depth β€” Allegro 5 API, periodt ✨

✨ SYNOPSIS ✨

lowkey all the setup you need is this header, plus the signature exactly like this:

#include <allegro5/allegro.h>

void al_set_new_bitmap_depth(int depth)

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this function sets the depthbuffer depth used by newly created bitmaps (on the current thread) if they're used with al_set_target_bitmap(3). got it? iconic.

and 0 means no depth-buffer will be created when drawing into the bitmap β€” which is the default, no cap. so if you want zero depth-buffer vibes, you literally already have them πŸ’€

πŸŽ€ SINCE πŸŽ€

5.2.1, slay πŸ’–

[Unstable API]: This is an experimental feature and currently only works for the OpenGL backend. so yeah, experimental queen behavior β€” OpenGL backend only for now, bestie 😭πŸ”₯

source/version: Allegro reference manual + al_set_new_bitmap_depth(3); date: none listed on this page, so we're not making one up fr fr πŸ«ΆπŸ’…

πŸ“¦ where this page comes from
  • arch rolling: allegro 5.2.11.3-2 Β· Zlib AND BSD-3-Clause AND OFL-1.1 AND LicenseRef-Custom
  • πŸ’– girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms