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

Comparing ray/src/hd/rhd_sample.h (file contents):
Revision 3.8 by greg, Sat Feb 22 02:07:24 2003 UTC vs.
Revision 3.9 by greg, Fri Jun 20 00:25:49 2003 UTC

# Line 1 | Line 1
1   /* RCSid: $Id$ */
2   /*
3   * Sample data structures for holodeck display drivers.
4 + *
5 + * Include after "standard.h"
6   */
7   #include "color.h"
8   #include "tonemap.h"
9   #include "rhdriver.h"
10   #include "object.h"
11  
10 #ifndef int2
11 #define int2    short
12 #endif
13 #ifndef int4
14 #define int4    int
15 #endif
16
12   #ifndef INVALID
13   #define INVALID  -1
14   #endif
# Line 26 | Line 21 | typedef OBJECT S_ID;
21  
22   typedef struct samp {
23          SFLOAT          (*wp)[3];       /* world intersection point array */
24 <        int4            *wd;            /* world direction array */
24 >        int32           *wd;            /* world direction array */
25          TMbright        *brt;           /* encoded brightness array */
26          BYTE            (*chr)[3];      /* encoded chrominance array */
27          BYTE            (*rgb)[3];      /* tone-mapped color array */
# Line 90 | Line 85 | typedef struct samp {
85  
86   extern  SAMP rsL;                      
87   extern double   sDepthEps;      /* epsilon to compare depths (z fraction) */
88 < extern int4     encodedir();    /* Encodes FVECT direction */
88 > extern int32    encodedir();    /* Encodes FVECT direction */
89   extern void     decodedir();    /* Decodes dir-> FVECT */
90   extern double   fdir2diff(), dir2diff(); /* Compare dir and FVECT */
91 < extern int4    *samp_flag;     /* Per/sample flags s */
91 > extern int32    *samp_flag;     /* Per/sample flags s */
92  
93   /* These values are set by the driver, and used in the OGL call for glFrustum*/
94   extern double dev_zmin,dev_zmax;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines