1select_palette(3)               Allegro manual               select_palette(3)
2
3
4

NAME

6       select_palette  - Sets the internal palette for color conversion. Alle‐
7       gro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       void select_palette(const PALETTE p);
14

DESCRIPTION

16       Ugly hack for use in various dodgy situations where you need to convert
17       between paletted and truecolor image formats. Sets the internal palette
18       table in the same way as the set_palette() function, so the  conversion
19       will use the specified palette, but without affecting the display hard‐
20       ware in any way. The previous palette settings are stored in an  inter‐
21       nal  buffer,  and can be restored by calling unselect_palette(). If you
22       call select_palette() again, however, the internal buffer will be over‐
23       written.
24
25

SEE ALSO

27       set_palette(3), unselect_palette(3), exlights(3)
28
29
30
31Allegro                          version 4.2.2               select_palette(3)
Impressum