Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

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

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.

Name

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

See Also

set_palette(3alleg4), unselect_palette(3alleg4), exlights(3alleg4)

Allegro                                           version 4.4.3                          select_palette(3alleg4)

Synopsis

#include<allegro.h>voidselect_palette(constPALETTEp);

See Also