_set_color(3alleg4)
π _set_color π
okay so bestie, this is the _set_color(3alleg4) page from the Allegro manual, and it's giving niche inline palette energy β¨ buckle up.
πΈ NAME πΈ
_set_color β an inline version of set_color(). Part of the Allegro game programming library. π
π SYNOPSIS π
#include <allegro.h>
void _set_color(int index, const RGB *p);
π¦ DESCRIPTION π¦
So _set_color is literally an inline version of set_color(), and it was intended for use inside the vertical retrace simulator callback function β that's retrace_proc, which is now deprecated, bestie. π
If you really must use _set_color from retrace_proc, note that it should only be used under DOS, in VGA mode 13h and mode-X. Some SVGA chipsets aren't VGA compatible β and this is the important part β set_color() and set_palette() will use VESA calls on these cards, but _set_color() doesn't know about that. π
β οΈ so like, lowkey? This one is DOS-only and deprecated-adjacent. Don't come for me, I'm just reading the manual. π
π SEE ALSO π
This iconic little page is from Allegro, version 4.4.3, and it's literally the _set_color(3alleg4) manual β periodt π
β¨ no cap, go read set_color(3alleg4) next, bestie π«Άπ
π¦ 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