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

Comparing ray/src/rt/rxtrace.cpp (file contents):
Revision 2.4 by greg, Wed May 1 22:06:09 2024 UTC vs.
Revision 2.7 by greg, Tue Nov 19 16:29:44 2024 UTC

# Line 68 | Line 68 | static oputf_t  oputo, oputd, oputv, oputV, oputl, opu
68   extern void tranotify(OBJECT obj);
69   static void tabin(RAY *r);
70   static RayReportCall ourtrace;
71 static RayReportCall printvals;
71  
72 < static void  putscolor(COLORV *scol);
72 > RayReportCall printvals;                /* print selected ray values */
73  
74 + void  putscolor(COLORV *scol);          /* convert/print spectral color */
75 +
76   static oputf_t *ray_out[32], *every_out[32];
76 static putf_t *putreal;
77  
78 + putf_t *putreal;                        /* put out real vector */
79 +
80   void
81   quit(                   /* quit program */
82          int  code
# Line 236 | Line 238 | rtrace(                                /* trace rays from stdin or file */
238                  pending |= (n > 1);     // time to flush output?
239                  bool    atZero = IsZeroVec(ivbuf[2*n-1]);
240                  if (pending & (atZero | (n == flushIntvl))) {
241 <                        if (!myRTmanager.FlushQueue())
241 >                        if (myRTmanager.FlushQueue() <= 0)
242                                  error(USER, "ray flush error");
243                          fflush(stdout);
244                          pending = false;
# Line 411 | Line 413 | setrtoutput(const char *outvals)       /* set up output tabl
413          return(ncomp);
414   }
415  
416 < static int
416 > int
417   printvals(                      /* print requested ray values */
418          RAY  *r, void *cd
419   )
# Line 766 | Line 768 | putrgbe(RREAL *v, int n)       /* output RGBE color */
768          putbinary(cout, sizeof(cout), 1, stdout);
769   }
770  
771 < static void
771 > void
772   putscolor(COLORV *scol)         /* output (spectral) color */
773   {
774          static COLORMAT xyz2myrgbmat;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines