color_map(3alleg)

color_map3alleg

Global pointer to the color mapping table. allegro game programming library.

Usage

#include <allegro.h>

extern COLOR_MAP *color_map;

Overview

Global pointer to the color mapping table. You must allocate your own COLOR_MAP either statically or dynamically and set color_map to it before using any translucent or lit drawing functions in a 256-color video mode! Example:

   color_map = malloc(sizeof(COLOR_MAP));
   if (!color_map)
      abort_on_error("Not enough memory for color map!");

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.