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

Comparing ray/src/rt/rcmain.c (file contents):
Revision 2.2 by greg, Sun Jun 10 05:25:42 2012 UTC vs.
Revision 2.9 by greg, Sat Aug 11 01:41:35 2012 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
9  
10   #include <signal.h>
11   #include "rcontrib.h"
12 < #include "platform.h"
13 < #include "paths.h"
12 > #include "random.h"
13   #include "source.h"
14   #include "ambient.h"
15  
# Line 44 | Line 43 | int    lim_dist = 0;                   /* limit distance? */
43   const char      *modname[MAXMODLIST];   /* ordered modifier name list */
44   int             nmods = 0;              /* number of modifiers */
45  
46 < char    RCCONTEXT[] = "RCONTRIB";       /* our special evaluation context */
46 > void    (*addobjnotify[8])() = {ambnotify, NULL};
47  
48 < void    (*addobjnotify[8])() = {ambnotify, tranotify, NULL};
48 > char    RCCONTEXT[] = "RC";             /* our special evaluation context */
49  
50  
51   static void
# Line 54 | Line 53 | printdefaults(void)                    /* print default values to stdou
53   {
54          char  *cp;
55  
56 +        printf("-c %-5d\t\t\t# accumulated rays per record\n", accumulate);
57 +        printf("-V%c\t\t\t\t# output %s\n", contrib ? '+' : '-',
58 +                        contrib ? "contributions" : "coefficients");
59          if (imm_irrad)
60                  printf("-I+\t\t\t\t# immediate irradiance on\n");
61          printf("-n %-2d\t\t\t\t# number of rendering processes\n", nproc);
# Line 167 | Line 169 | main(int argc, char *argv[])
169                                  case 'n': case 'N': case 'f': case 'F': \
170                                  case '-': case '0': var = 0; break; \
171                                  default: goto badopt; }
170        int     nprocs = 1;
172          char    *curout = NULL;
173          char    *binval = NULL;
174          int     bincnt = 0;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines