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.31 by greg, Sat Dec 12 05:20:10 2009 UTC vs.
Revision 2.37 by greg, Wed Jun 29 13:41:26 2011 UTC

# Line 76 | Line 76 | extern char  VersionID[];      /* Radiance version ID strin
76   extern CUBE     thescene;       /* our scene */
77   extern OBJECT   nsceneobjs;     /* number of objects in our scene */
78  
79 < extern unsigned long    raynum; /* next ray ID */
80 < extern unsigned long    nrays;  /* total rays traced so far */
79 > extern RNUMBER  raynum;         /* next ray ID */
80 > extern RNUMBER  nrays;          /* total rays traced so far */
81  
82   extern OBJREC  Lamb;            /* a Lambertian surface */
83   extern OBJREC  Aftplane;        /* aft clipping object */
# Line 195 | Line 195 | extern void    ray_restore(RAYPARAMS *rp);
195   extern void     ray_defaults(RAYPARAMS *rp);
196                                          /* defined in raypcalls.c */
197   extern void     ray_pinit(char *otnm, int nproc);
198 < extern void     ray_psend(RAY *r);
198 > extern int      ray_psend(RAY *r);
199   extern int      ray_pqueue(RAY *r);
200   extern int      ray_presult(RAY *r, int poll);
201   extern void     ray_pdone(int freall);
# Line 216 | Line 216 | extern int     rayshade(RAY *r, int mod);
216   extern void     rayparticipate(RAY *r);
217   extern void     raytexture(RAY *r, OBJECT mod);
218   extern int      raymixture(RAY *r, OBJECT fore, OBJECT back, double coef);
219 < extern void     raycontrib(double rc[3], const RAY *r, int flags);
219 > extern void     raycontrib(RREAL rc[3], const RAY *r, int flags);
220   extern double   raydist(const RAY *r, int flags);
221   extern double   raynormal(FVECT norm, RAY *r);
222   extern void     newrayxf(RAY *r);
# Line 232 | Line 232 | extern void init_drawsources(int rad);
232                                          /* defined in rt/initotypes.c */
233   extern void initotypes(void);
234                                          /* module main procedures */
235 < extern void     rtrace(char *fname);
236 < extern char * formstr(int  f);
235 > extern void     rtrace(char *fname, int nproc);
236 > extern char     *formstr(int  f);
237   extern void     rview(void);
238   extern void     rpict(int seq, char *pout, char *zout, char *prvr);
239  
240 + #ifdef __FAST_MATH__
241 + #define checknorm(vn)   (void)normalize(vn)
242 + #else
243 + #define checknorm(vn)
244 + #endif
245  
246   #ifdef __cplusplus
247   }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines