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

Comparing ray/src/rt/rcontrib.c (file contents):
Revision 2.31 by greg, Fri Feb 23 03:21:24 2018 UTC vs.
Revision 2.32 by greg, Wed Jun 13 21:23:45 2018 UTC

# Line 21 | Line 21 | int    dimlist[MAXDIM];                /* sampling dimensions */
21   int     ndims = 0;                      /* number of sampling dimensions */
22   int     samplendx = 0;                  /* index for this sample */
23  
24 < static void     trace_contrib(RAY *r);  /* our trace callback */
25 < void    (*trace)() = trace_contrib;
24 > void    (*trace)();
25  
26   int     do_irrad = 0;                   /* compute irradiance? */
27  
# Line 67 | Line 66 | long   waitflush;                      /* how long until next flush */
66   RNUMBER lastray = 0;                    /* last ray number sent */
67   RNUMBER lastdone = 0;                   /* last ray output */
68  
69 + static void     trace_contrib(RAY *r);  /* our trace callback */
70 +
71   static void mcfree(void *p) { epfree((*(MODCONT *)p).binv); free(p); }
72  
73   LUTAB   modconttab = LU_SINIT(NULL,mcfree);     /* modifier lookup table */
# Line 196 | Line 197 | rcinit(void)
197                                          /* set shared memory boundary */
198                  shm_boundary = strcpy((char *)malloc(16), "SHM_BOUNDARY");
199          }
200 +        trace = trace_contrib;          /* set up trace call-back */
201          for (i = 0; i < nsources; i++)  /* tracing to sources as well */
202                  source[i].sflags |= SFOLLOW;
203          if (yres > 0) {                 /* set up flushing & ray counts */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines