al_set_separate_blender(3alleg5)

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

✨ al_set_separate_blender ✨

okay bestie, welcome to the Allegro 5 API corner of the 3alleg5 manual πŸ’– this one's short and sweet, so let's get into it 🫢


🌸 NAME 🌸

al_set_separate_blender β€” Allegro 5 API πŸ‘‘


πŸŽ€ SYNOPSIS πŸŽ€

#include <allegro5/allegro.h>

void al_set_separate_blender(int op, int src, int dst,
   int alpha_op, int alpha_src, int alpha_dst)

like, look at those six whole ints just vibing in there πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

so this is literally al_set_blender(3alleg5) but make it fancier ✨ It does the exact same thing, except it also lets you set a separate blending operation for the alpha channel β€” its own alpha_op, its own alpha_src, its own alpha_dst, the whole little trio 🌈

why would you even want that, you ask? πŸ₯Ί bestie, it's for when your target bitmap has an alpha channel too, and those two alpha channels need to be combined in a different way than the color components are. that's it, that's the whole reason, and honestly? iconic πŸ‘‘

not me giving alpha its own whole blender setup while the colors just stand there πŸ’€ it's what she deserves though

πŸ’œ SEE ALSO πŸ’œ


and that's the vibe check, bestie 🌸 this was the Allegro reference manual talking about al_set_separate_blender(3alleg5) β€” go forth and blend separately, you absolute main character πŸ’…βœ¨πŸ’–

πŸ“¦ where this page comes from