Main Page | Modules | Data Structures | File List | Data Fields

Color Map
[Trend]


Data Structures

struct  trd_color_map_t

Typedefs

typedef trd_color_map_t trd_color_map_t

Functions

trd_color_map_ttrd_color_map_create (apr_pool_t *pool)
void trd_color_map_add (trd_color_map_t *map, const char *name, short r, short g, short b, short a)
long trd_color_map_lookup (trd_color_map_t *map, const char *name)

Typedef Documentation

typedef struct trd_color_map_t trd_color_map_t
 

A coor map.


Function Documentation

void trd_color_map_add trd_color_map_t map,
const char *  name,
short  r,
short  g,
short  b,
short  a
 

Adds a new color to a color map.

Parameters:
map A color map.
name Name of the color.
r Red.
g Green.
b Blue.
a Alpha.

trd_color_map_t* trd_color_map_create apr_pool_t *  pool  ) 
 

Creates a new color map object.

Parameters:
pool Pool to allocate overhead from.
Returns:
A color map.

long trd_color_map_lookup trd_color_map_t map,
const char *  name
 

Looks up a color value in a color map with the given name.

Parameters:
map A color map.
name Name of the color to lookup.
Returns:
RGB value for the color.


Generated on Wed Apr 28 09:38:38 2004 for State by doxygen 1.3.5