al_set_separate_bitmap_blender(3alleg5)
π al_set_separate_bitmap_blender π
okay bestie, so we're in the al_set_separate_bitmap_blender(3alleg5) page of the Allegro reference manual and honestly? it's giving "alpha channel gets its OWN blender" and I'm obsessed. π
β¨ NAME β¨
al_set_separate_bitmap_blender β it's the Allegro 5 API function that lets you pick a whole separate blending operation just for the alpha channel. two blenders, one call. main character energy fr fr. π
π¦ SYNOPSIS π¦
#include <allegro5/allegro.h>
void al_set_separate_bitmap_blender(int op, int src, int dst, int alpha_op, int alpha_src, int alpha_dst)
πΈ DESCRIPTION πΈ
so basically, this is literally like al_set_bitmap_blender(3alleg5) β same vibe, same energy β BUT it also lets you specify a separate blending operation for the alpha channel. two ops. two sets of src/dst. she contains multitudes. π
and like, when is that useful? bestie, listen: if your target bitmap also has an alpha channel, and those two alpha channels need to be combined in a different way than the color components do β that's the moment. that's her moment. otherwise you'd be stuck smashing them together the same way as the colors and that's just not it. π
β SINCE β
5.2.5
[Unstable API]: New API. π¨
okay so real talk: she's marked Unstable API, and she's a New API. so like, use her, love her, but know she's still figuring herself out. no cap. π
π«Ά SEE ALSO π«Ά
and that's the whole page, bestie!! πβ¨ written up for the Allegro reference manual, filed under al_set_separate_bitmap_blender(3alleg5), and floating around the 5.2.5 era. go forth and blend those alpha channels separately, you absolute icon. ππΈπ¦
π¦ where this page comes from
- debian trixie: allegro5-doc 2:5.2.10.1+dfsg-1 Β· Zlib
- ubuntu questing: allegro5-doc 2:5.2.10.1+dfsg-1build1
- 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