_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 πŸ«ΆπŸ’–