logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

create_blender_table - Emulates truecolor blender effects in paletted modes. Allegro game programming

Description

       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.

Name

       create_blender_table  -  Emulates  truecolor  blender effects in paletted modes. Allegro game programming
       library.

See Also

color_map(3alleg4),               create_light_table(3alleg4),               create_trans_table(3alleg4),
       create_color_table(3alleg4),            draw_trans_sprite(3alleg4),             draw_lit_sprite(3alleg4),
       draw_gouraud_sprite(3alleg4), set_trans_blender(3alleg4), set_blender_mode(3alleg4)

Allegro                                           version 4.4.3                    create_blender_table(3alleg4)

Synopsis

#include<allegro.h>voidcreate_blender_table(COLOR_MAP*table,constPALETTEpal,void(*callback)(intpos));

See Also