set_palette - Man Page

Sets the entire palette of 256 colors. Allegro game programming library.

Synopsis

#include <allegro.h>

void set_palette(const PALETTE p);

Description

Sets the entire palette of 256 colors. You should provide an array of 256  RGB structures. Unlike set_color(), there is no need to call vsync()  before this function. Example:

   BITMAP *bmp;
   PALETTE palette;
   ...
   bmp = load_bitmap(filename, palette);
   if (!bmp)
      abort_on_error("Couldn't load bitmap!");
   set_palette(palette);

See Also

set_gfx_mode(3), set_palette_range(3), set_color(3), get_palette(3), select_palette(3), palette_color(3)

Referenced By

ex12bit(3), ex3buf(3), ex3d(3), exaccel(3), exbitmap(3), excamera(3), excolmap(3), exconfig(3), excustom(3), exdata(3), exdbuf(3), exexedat(3), exflame(3), exflip(3), exfont(3), exgui(3), exhello(3), exjoy(3), exkeys(3), exmem(3), exmidi(3), exmouse(3), expal(3), expat(3), exquat(3), exrgbhsv(3), exsample(3), exscale(3), exscn3d(3), exscroll(3), exshade(3), exspline(3), exsprite(3), exstars(3), exstream(3), exswitch(3), extimer(3), extrans(3), extruec(3), exupdate(3), exxfade(3), exzbuf(3), get_palette(3), palette_color(3), select_palette(3), set_color(3), set_palette_range(3), vsync(3).

version 4.4.3 Allegro manual