1set_palette_range(3) Allegro manual set_palette_range(3)
2
3
4
6 set_palette_range - Sets a specific range of the palette. Allegro game
7 programming library.
8
10 #include <allegro.h>
11
12
13 void set_palette_range(const PALETTE p, int from, int to, int vsync);
14
16 Sets the palette entries between from and to (inclusive: pass 0 and 255
17 to set the entire palette). If vsync is set it waits for the vertical
18 retrace, otherwise it sets the colors immediately. Example:
19
20 PALETTE palette;
21 ...
22 /* Modify the first 16 entries. */
23 change_first_16_colors(palette);
24 /* Now update them waiting for vsync. */
25 set_palette_range(palette, 0, 15, 1);
26
27
29 set_palette(3), get_palette_range(3), exzbuf(3)
30
31
32
33Allegro version 4.2.3 set_palette_range(3)