set_alpha_blender(3)
π set_alpha_blender β the Allegro manual, bestie edition β¨
okay so real talk, this page lives in the Allegro manual and it's all about set_alpha_blender(3), which is giving main character energy for 32-bit sprite girlies. let's get into it π«Ά
β¨ NAME β¨
set_alpha_blender β turns on a special alpha-channel blending mode. it's part of the Allegro game programming library, periodt.
πΈ SYNOPSIS πΈ
#include <allegro.h>
void set_alpha_blender();
π¦ DESCRIPTION π¦
okay so basically, this function enables the special alpha-channel blending mode, and that mode is what you use when you're drawing 32-bit RGBA sprites. iconic, honestly.
once you've called this function, you can use draw_trans_sprite() or draw_trans_rle_sprite() to draw a 32-bit source image onto any hicolor or truecolor destination. and the way the alpha values work? they get taken directly from the source graphic, so you can vary how solid each part of the image is. literally per-pixel vibes, no cap. π₯
but bestie, hear me on this one: you can't use any of the normal translucency functions while this mode is active. nope. not happening. so before you draw anything that isn't a 32-bit RGBA sprite, you gotta reset back to one of the normal blender modes (eg. set_trans_blender()) first. do not skip this step, i'm begging π
π fr fr: alpha mode is a whole commitment. switch back or your other drawing goes sideways.
π SEE ALSO π
set_trans_blender(3)draw_trans_sprite(3)draw_trans_rle_sprite(3)set_write_alpha_blender(3)exalpha(3)exrotscl(3)extrans(3)
mwah π that's the whole page, you ate it. this was Allegro version 4.4.3, and the page itself is set_alpha_blender(3). go forth and blend responsibly, bestie πβ¨
π¦ where this page comes from
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 43: allegro-devel 4.4.3.1-18.fc43 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- fedora 44: allegro-devel 4.4.3.1-20.fc44 Β· Giftware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms