rgb_map man page

rgb_map — Look up table to speed up reducing RGB values to palette colors. Allegro game programming library.


#include <allegro.h>

extern RGB_MAP *rgb_map;


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

See Also

create_rgb_table(3), makecol8(3), create_trans_table(3), create_light_table(3), create_color_table(3), ex3d(3), excolmap(3), exrgbhsv(3), exshade(3), extrans(3)

Referenced By

create_color_table(3), create_light_table(3), create_rgb_table(3), create_trans_table(3), ex3d(3), excolmap(3), exrgbhsv(3), exshade(3), extrans(3), makecol(3), makecol8(3), makecol_depth(3), POLYTYPE_GRGB(3).

Explore man page connections for rgb_map(3).

Allegro version 4.4.2 Allegro manual