1color_map(3) Allegro manual color_map(3)
2
3
4
6 color_map - Global pointer to the color mapping table. Allegro game
7 programming library.
8
10 #include <allegro.h>
11
12
13 extern COLOR_MAP *color_map;
14
16 Global pointer to the color mapping table. You must allocate your own
17 COLOR_MAP either statically or dynamically and set color_map to it
18 before using any translucent or lit drawing functions in a 256-color
19 video mode! Example:
20
21 color_map = malloc(sizeof(COLOR_MAP));
22 if (!color_map)
23 abort_on_error("Not enough memory for color map!");
24
25
27 create_color_table(3), create_light_table(3), create_trans_table(3),
28 create_blender_table(3), set_trans_blender(3), draw_trans_sprite(3),
29 draw_lit_sprite(3), draw_gouraud_sprite(3), drawing_mode(3), ex3d(3),
30 excolmap(3), exlights(3), exshade(3), extrans(3)
31
32
33
34Allegro version 4.4.2 color_map(3)