1create_rgb_table(3) Allegro manual create_rgb_table(3)
2
3
4
6 create_rgb_table - Generates an RGB mapping table with lookup data for
7 a palette. Allegro game programming library.
8
10 #include <allegro.h>
11
12
13 void create_rgb_table(RGB_MAP *table, const PALETTE pal, void (*call‐
14 back)(int pos));
15
17 Fills the specified RGB mapping table with lookup data for the speci‐
18 fied palette. If the callback function is not NULL, it will be called
19 256 times during the calculation, allowing you to display a progress
20 indicator. Example:
21
22 RGB_MAP rgb_table;
23
24 create_rgb_table(&rgb_table, palette, NULL);
25 rgb_map = &rgb_table;
26
27
29 rgb_map(3), ex3d(3), excolmap(3), exrgbhsv(3), exshade(3), extrans(3)
30
31
32
33Allegro version 4.4.2 create_rgb_table(3)