color_map man page on DragonFly
[printable version]
color_map(3) Allegro manual color_map(3)
NAME
color_map - Global pointer to the color mapping table. Allegro game
programming library.
SYNOPSIS
#include <allegro.h>
extern COLOR_MAP *color_map;
DESCRIPTION
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!");
SEE ALSO
create_color_table(3), create_light_table(3), create_trans_table(3),
create_blender_table(3), set_trans_blender(3), draw_trans_sprite(3),
draw_lit_sprite(3), draw_gouraud_sprite(3), drawing_mode(3), ex3d(3),
excolmap(3), exlights(3), exshade(3), extrans(3)
Allegro version 4.4.2 color_map(3)
[top]
List of man pages available for DragonFly
Copyright (c) for man pages and the logo by the respective OS vendor.
For those who want to learn more, the polarhome community provides shell access and support.
[legal]
[privacy]
[GNU]
[policy]
[cookies]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
|
Vote for polarhome
|