1rgb_map(3)                      Allegro manual                      rgb_map(3)
2
3
4

NAME

6       rgb_map - Look up table to speed up reducing RGB values to palette col‐
7       ors. Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       extern RGB_MAP *rgb_map;
14

DESCRIPTION

16       To speed up reducing RGB values to 8-bit paletted colors, Allegro  uses
17       a  32k  lookup table (5 bits for each color component). You must set up
18       this table before using the gouraud shading routines,  and  if  present
19       the  table  will  also  vastly  accelerate the makecol8() and some cre‐
20       ate_*_table() functions. RGB  tables  can  be  precalculated  with  the
21       rgbmap utility, or generated at runtime with create_rgb_table().
22
23

SEE ALSO

25       create_rgb_table(3),     makecol8(3),    create_trans_table(3),    cre‐
26       ate_light_table(3),   create_color_table(3),   ex3d(3),    excolmap(3),
27       exrgbhsv(3), exshade(3), extrans(3)
28
29
30
31Allegro                          version 4.2.3                      rgb_map(3)
Impressum