1draw_lit_rle_sprite(3) Allegro manual draw_lit_rle_sprite(3)
2
3
4
6 draw_lit_rle_sprite - Draws a tinted RLE sprite. Allegro game programā
7 ming library.
8
10 #include <allegro.h>
11
12
13 void draw_lit_rle_sprite(BITMAP *bmp, const RLE_SPRITE *sprite, int x,
14 y, color);
15
17 Tinted version of draw_rle_sprite(). See the description of
18 draw_lit_sprite(). This must only be used after you have set up the
19 color mapping table (for 256-color modes) or blender functions (for
20 truecolor modes). Example:
21
22 /* Some one time initialisation code. */
23 COLOR_MAP global_light_table;
24 create_light_table(&global_trans_table, my_palette,
25 10, 10, 60, NULL);
26 ...
27 if (get_color_depth() == 8)
28 color_map = &global_light_table;
29 else
30 set_trans_blender(40, 40, 255, 255);
31
32 /* Lit the cape with a blueish light. */
33 draw_lit_rle_sprite(buffer, rle_colored_cape, x, y, 64);
34
35
36
37
39 draw_rle_sprite(3), draw_trans_rle_sprite(3), draw_lit_sprite(3),
40 color_map(3), set_trans_blender(3), bitmap_mask_color(3)
41
42
43
44Allegro version 4.4.3 draw_lit_rle_sprite(3)