al_set_new_bitmap_depth(3)
π 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