al_set_separate_bitmap_blender(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… 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