Emulates truecolor blender effects in palettised modes.


void create_blender_table(COLOR_MAP *table, const PALETTE pal, void (*callback)(int pos));
Fills the specified color mapping table with lookup data for doing a paletted equivalent of whatever truecolor blender mode is currently selected. After calling set_trans_blender(), set_blender_mode(), or any of the other truecolor blender mode routines, you can use this function to create an 8-bit mapping table that will have the same results as whatever 24-bit blending mode you have enabled.

Related Projects

The following projects include source code containing this keyword: