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 2.25 by greg, Tue Apr 19 01:15:06 2005 UTC vs.
Revision 2.26 by greg, Thu May 26 06:55:22 2005 UTC

# Line 42 | Line 42 | typedef struct ray {
42          int     rsrc;           /* source we're aiming for */
43          OBJECT  *clipset;       /* set of objects currently clipped */
44          OBJECT  *newcset;       /* next clipset, used for transmission */
45 +        void    (*revf)(struct ray *);  /* ray evaluation function */
46          void    (*hitf)(OBJECT *, struct ray *);        /* custom hit test */
47          OBJECT  robj;           /* intersected object number */
48          OBJREC  *ro;            /* intersected object (one with material) */
# Line 61 | Line 62 | typedef struct ray {
62          int     *slights;       /* list of lights to test for scattering */
63   }  RAY;
64  
65 + #define  rayvalue(r)    (*(r)->revf)(r)
66 +
67   extern char  VersionID[];       /* Radiance version ID string */
68  
69   extern CUBE     thescene;       /* our scene */
# Line 191 | Line 194 | extern void    ray_pclose(int nsub);
194                                          /* defined in raytrace.c */
195   extern int      rayorigin(RAY *r, int rt, const RAY *ro, const COLOR rc);
196   extern void     rayclear(RAY *r);
197 < extern void     rayvalue(RAY *r);
197 > extern void     raytrace(RAY *r);
198   extern void     rayhit(OBJECT *oset, RAY *r);
199   extern void     raycont(RAY *r);
200   extern void     raytrans(RAY *r);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines