Rechercher une page de manuel
select_palette.3alleg
Langue: en
Version: version 4.2.2 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
Sommaire
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 between 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(3alleg), unselect_palette(3alleg), exlights(3alleg)Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre