rgb_map(3)

NAME
rgb_map

SYNOPSIS
#include <allegro.h>

extern RGB_MAP *rgb_map;

DESCRIPTION
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() function. RGB tables can be precalculated with the rgbmap utility, or generated at runtime. The RGB_MAP structure is defined as:
   typedef struct {
      unsigned char data[32][32][32];
   } RGB_MAP;

SEE ALSO
create_rgb_table(3), makecol8(3)