1create_blender_table(3) Allegro manual create_blender_table(3)
2
3
4
6 create_blender_table - Emulates truecolor blender effects in paletted
7 modes. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 void create_blender_table(COLOR_MAP *table, const PALETTE pal, void
14 (*callback)(int pos));
15
17 Fills the specified color mapping table with lookup data for doing a
18 paletted equivalent of whatever truecolor blender mode is currently
19 selected. After calling set_trans_blender(), set_blender_mode(), or any
20 of the other truecolor blender mode routines, you can use this function
21 to create an 8-bit mapping table that will have the same results as
22 whatever 24-bit blending mode you have enabled.
23
24
26 color_map(3), create_light_table(3), create_trans_table(3), cre‐
27 ate_color_table(3), draw_trans_sprite(3), draw_lit_sprite(3),
28 draw_gouraud_sprite(3), set_trans_blender(3), set_blender_mode(3)
29
30
31
32Allegro version 4.2.2 create_blender_table(3)