man color_map () - Global pointer to the color mapping table. Allegro game programming library.
NAME
color_map - Global pointer to the color mapping table. Allegro game programming library.
SYNOPSIS
#include <allegro.h>
extern COLOR_MAP *color_map;
DESCRIPTION
Global pointer to the color mapping table. You must allocate your own COLOR_MAP either statically or dynamically and set color_map to it before using any translucent or lit drawing functions in a 256-color video mode! Example:
color_map = malloc(sizeof(COLOR_MAP)); if (!color_map) abort_on_error("Not enough memory for color map!");
SEE ALSO
create_color_table(3alleg), create_light_table(3alleg), create_trans_table(3alleg), create_blender_table(3alleg), set_trans_blender(3alleg), draw_trans_sprite(3alleg), draw_lit_sprite(3alleg), draw_gouraud_sprite(3alleg), drawing_mode(3alleg), ex3d(3alleg), excolmap(3alleg), exlights(3alleg), exshade(3alleg), extrans(3alleg)