1 |
< |
/* Copyright (c) 1997 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
|
|
3 |
< |
/* SCCSid "$SunId$ LBL" */ |
3 |
> |
/* SCCSid "$SunId$ SGI" */ |
4 |
|
|
5 |
|
/* |
6 |
|
* color.h - header for routines using pixel color values. |
7 |
|
* |
8 |
< |
* 12/31/85 |
8 |
> |
* Must be included after X11 headers, since they declare a BYTE type. |
9 |
|
* |
10 |
|
* Two color representations are used, one for calculation and |
11 |
|
* another for storage. Calculation is done with three floats |
23 |
|
#define COLXS 128 /* excess used for exponent */ |
24 |
|
#define WHT 3 /* used for RGBPRIMS type */ |
25 |
|
|
26 |
< |
typedef unsigned char BYTE; /* 8-bit unsigned integer */ |
26 |
> |
#undef BYTE |
27 |
> |
#define BYTE unsigned char /* 8-bit unsigned integer */ |
28 |
|
|
29 |
|
typedef BYTE COLR[4]; /* red, green, blue (or X,Y,Z), exponent */ |
30 |
|
|