.\" Generated by the Allegro makedoc utility .TH color_map 3alleg4 "version 4.4.2" "Allegro" "Allegro manual" .SH NAME color_map \- Global pointer to the color mapping table. Allegro game programming library.\& .SH SYNOPSIS .B #include .sp .B extern COLOR_MAP *color_map; .SH 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: .nf color_map = malloc(sizeof(COLOR_MAP)); if (!color_map) abort_on_error("Not enough memory for color map!"); .fi .SH SEE ALSO .BR create_color_table (3alleg4), .BR create_light_table (3alleg4), .BR create_trans_table (3alleg4), .BR create_blender_table (3alleg4), .BR set_trans_blender (3alleg4), .BR draw_trans_sprite (3alleg4), .BR draw_lit_sprite (3alleg4), .BR draw_gouraud_sprite (3alleg4), .BR drawing_mode (3alleg4), .BR ex3d (3alleg4), .BR excolmap (3alleg4), .BR exlights (3alleg4), .BR exshade (3alleg4), .BR extrans (3alleg4)