set_blender_mode_ex(3alleg4)
π set_blender_mode_ex β the Allegro manual, but make it cute π
okay bestie, you're in the Allegro game programming library docs and this one is a certified baddie, let's go β¨
πΈ NAME πΈ
set_blender_mode_ex</ppurple> β it's literally an even more complex version of set_blender_mode(). yes, more. she said "and I took that personally." π
Allegro game programming library, periodt.
π SYNOPSIS π
#include <allegro.h>
void set_blender_mode_ex(BLENDER_FUNC b15, b16, b24, b32, b15x, b16x,
b24x, int r, g, b, a);
look at all those parameters. seven blender funcs plus four ints. it's giving maximalist icon and honestly? we respect it π«Ά
π¦ DESCRIPTION π¦
so. you already know set_blender_mode(), right? well this is that but she went to glow-up bootcamp and came back with a way more complete set of blender routines. no cap.
here's the tea on who does what π
b15,b16,b24, andb32β these are the ones that get called when you're drawing pixels onto destinations of the same format. matching energy, love that for them. β¨b15x,b16x, andb24xβ these babies get used bydraw_trans_sprite()anddraw_trans_rle_sprite()when you're drawing RGBA images onto destination bitmaps of another format. crossing format lines, iconic, we support it. π
and now the important part, don't skip this, it's lowkey the whole plot: these blenders will be passed a 32-bit x parameter, along with a y value of a different color depth, and they must try to do something sensible in response. π yeah. sensible. bestie the blender has to improvise, and honestly same.
fr fr β those mismatched-format blenders don't get a clean matching pair, they get handed a 32-bitxand ayat a different depth and are just expected to cope. character development, honestly.
π SEE ALSO π
go read those too, they're the supporting cast and they ate π
and that's the whole page, bestie!! π this was Allegro, version 4.4.3, and you just read set_blender_mode_ex(3alleg4) β mwah, go blend something gorgeous π
β¨π
π¦ where this page comes from
- debian bookworm: allegro4-doc 2:4.4.3.1-3 Β· Allegro-gift-ware
- debian trixie: allegro4-doc 2:4.4.3.1-5 Β· Allegro-gift-ware
- ubuntu jammy: allegro4-doc 2:4.4.3.1-2 Β· Allegro-gift-ware
- ubuntu noble: allegro4-doc 2:4.4.3.1-4.1build3 Β· Allegro-gift-ware
- ubuntu questing: allegro4-doc 2:4.4.3.1-6
- ubuntu resolute: allegro4-doc 2:4.4.3.1-7 Β· Allegro-gift-ware
- ubuntu stonking: allegro4-doc 2:4.4.3.1-9 Β· Allegro-gift-ware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms