Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
select_palette(3)		 Allegro manual 	       select_palette(3)

NAME
     select_palette  -	Sets  the internal palette for color conversion. Allegro
     game programming library.

SYNOPSIS
     #include <allegro.h>

     void select_palette(const PALETTE p);

DESCRIPTION
     Ugly hack for use in various dodgy situations where you need to convert be-
     tween paletted and truecolor image formats. Sets the internal palette table
     in the same way as the set_palette() function, so the conversion  will  use
     the  specified  palette,  but without affecting the display hardware in any
     way. The previous palette settings are stored in an  internal  buffer,  and
     can be restored by calling unselect_palette(). If you call select_palette()
     again, however, the internal buffer will be overwritten.

SEE ALSO
     set_palette(3), unselect_palette(3), exlights(3)

Allegro 			  version 4.4.3 	       select_palette(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=select_palette&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help