Sets the entire palette of 256 colors.


void set_palette(const PALETTE p);
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!");
Examples using this:

Related Discussions

The following threads each have code containing this keyword: Note: You can click on the numbers to jump directly to the posts that reference this page.

Related Projects

The following projects include source code containing this keyword: