Generates an rgb mapping table with lookup data for a palette. allegro game programming library.
#include <allegro.h>
void create_rgb_table(RGB_MAP *table, const PALETTE pal, void (*callback)(int pos));
Fills the specified RGB mapping table with lookup data for the specified palette. If the callback function is not NULL, it will be called 256 times during the calculation, allowing you to display a progress indicator. Example:
RGB_MAP rgb_table; create_rgb_table(&rgb_table, palette, NULL); rgb_map = &rgb_table;
rgb_map(3alleg4), ex3d(3alleg4), excolmap(3alleg4), exrgbhsv(3alleg4), exshade(3alleg4), extrans(3alleg4)