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

Comparing ray/src/rt/ray.h (file contents):
Revision 1.5 by greg, Thu May 23 08:12:57 1991 UTC vs.
Revision 1.6 by greg, Thu Jun 20 13:29:31 1991 UTC

# Line 37 | Line 37 | typedef struct ray {
37          int  rsrc;              /* source we're aiming for */
38          OBJECT  *clipset;       /* set of objects currently clipped */
39          OBJECT  *newcset;       /* next clipset, used for transmission */
40 +        int  (*revf)();         /* evaluation function for this ray */
41          OBJREC  *ro;            /* intersected object */
42          double  rot;            /* distance to object */
43          FVECT  rop;             /* intersection point */
# Line 49 | Line 50 | typedef struct ray {
50          double  rt;             /* returned effective ray length */
51   }  RAY;
52  
53 + extern int  raytrace();
54 +
55   extern double  raynormal();
56  
57   extern int  dimlist[];          /* dimension list for distribution */
# Line 56 | Line 59 | extern int  ndims;             /* number of dimensions so far */
59   extern int  samplendx;          /* index for this sample */
60  
61   #define  MAXDIM         16      /* maximum number of dimensions */
62 +
63 + #define  rayvalue(r)    (*(r)->revf)(r)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines