create_rgb_table(3alleg)

create_rgb_table3alleg

Generates an rgb mapping table with lookup data for a palette. allegro game programming library.

Usage

#include <allegro.h>

void create_rgb_table(RGB_MAP *table, const PALETTE pal, void (*callback)(int pos));

Overview

Fills the specified RGB mapping table with lookup data for the specified palette. If the callback function is not NULL, it will be called 256 times during the calculation, allowing you to display a progress indicator. Example:

   RGB_MAP rgb_table;
   create_rgb_table(&rgb_table, palette, NULL);
   rgb_map = &rgb_table;

Releases

4 releases since Debian 3.1 (Sarge); the text changed 2 times.

  1. 3.1
  2. 4.0
  3. 5.0–6.0

From liballegro-doc 2:4.2.2-2.2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.