ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/color.h
(Generate patch)

Comparing ray/src/common/color.h (file contents):
Revision 2.30 by greg, Thu May 21 18:08:43 2009 UTC vs.
Revision 2.31 by greg, Fri May 20 02:06:38 2011 UTC

# Line 2 | Line 2
2   /*
3   *  color.h - header for routines using pixel color values.
4   *
5 *  Must be included after X11 headers, since they declare a BYTE type.
6 *
5   *  Two color representations are used, one for calculation and
6   *  another for storage.  Calculation is done with three floats
7   *  for speed.  Stored color values use 4 bytes which contain
# Line 28 | Line 26 | extern "C" {
26   #define  COLXS          128     /* excess used for exponent */
27   #define  WHT            3       /* used for RGBPRIMS type */
28  
29 < #undef  BYTE
30 < #define  BYTE   unsigned char   /* 8-bit unsigned integer */
29 > #undef uby8
30 > #define uby8  unsigned char     /* 8-bit unsigned integer */
31  
32 < typedef BYTE  COLR[4];          /* red, green, blue (or X,Y,Z), exponent */
32 > typedef uby8  COLR[4];          /* red, green, blue (or X,Y,Z), exponent */
33  
34   typedef float COLORV;
35   typedef COLORV  COLOR[3];       /* red, green, blue (or X,Y,Z) */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines