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

Comparing ray/src/rt/rtrace.c (file contents):
Revision 2.47 by greg, Mon Jun 13 20:07:56 2005 UTC vs.
Revision 2.50 by greg, Fri Oct 7 03:45:14 2005 UTC

# Line 29 | Line 29 | static const char      RCSid[] = "$Id$";
29   #include  "source.h"
30   #include  "otypes.h"
31   #include  "resolu.h"
32 + #include  "random.h"
33  
34   CUBE  thescene;                         /* our scene */
35   OBJECT  nsceneobjs;                     /* number of objects in our scene */
# Line 214 | Line 215 | rtrace(                                /* trace rays from file */
215                  if (vcount && !--vcount)                /* check for end */
216                          break;
217          }
218 <        fflush(stdout);
218 >        if (fflush(stdout) < 0)
219 >                error(SYSTEM, "write error");
220          if (vcount)
221                  error(USER, "unexpected EOF on input");
222          if (fname != NULL)
# Line 638 | Line 640 | oputW(                         /* print contribution */
640          RAY  *r
641   )
642   {
643 <        COLOR   contr;
643 >        double  contr[3];
644  
645          raycontrib(contr, r, PRIMARY);
646 <        (*putreal)(colval(contr,RED));
647 <        (*putreal)(colval(contr,GRN));
648 <        (*putreal)(colval(contr,BLU));
646 >        (*putreal)(contr[RED]);
647 >        (*putreal)(contr[GRN]);
648 >        (*putreal)(contr[BLU]);
649   }
650  
651  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines