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

Comparing ray/src/rt/rpmain.c (file contents):
Revision 2.35 by greg, Wed Oct 30 16:47:03 2024 UTC vs.
Revision 2.40 by greg, Thu Jun 5 18:26:46 2025 UTC

# Line 13 | Line 13 | static const char      RCSid[] = "$Id$";
13   #include  "platform.h"
14   #include  "rtprocess.h" /* getpid() */
15   #include  "ray.h"
16 + #include  "func.h"
17   #include  "source.h"
18   #include  "ambient.h"
19   #include  "random.h"
# Line 27 | Line 28 | static const char      RCSid[] = "$Id$";
28   #define  PCHILD         3               /* child of normal persist */
29   #endif
30  
30 char  *progname;                        /* argv[0] */
31   char  *octname;                         /* octree name */
32   char  *sigerr[NSIG];                    /* signal error messages */
33   char  *errfile = NULL;                  /* error output file */
34  
35 extern time_t  time();
35   extern time_t  tstart;                  /* start time */
36  
37   extern int  ralrm;                      /* seconds between reports */
# Line 109 | Line 108 | main(int  argc, char  *argv[])
108          strcat(RFeatureList, RPICT_FEATURES);
109          if (argc > 1 && !strcmp(argv[1], "-features"))
110                  return feature_status(argc-2, argv+2);
111 +                                        /* initialize calcomp routines */
112 +        initfunc();
113                                          /* option city */
114          for (i = 1; i < argc; i++) {
115                                                  /* expand arguments */
# Line 241 | Line 242 | main(int  argc, char  *argv[])
242                                  check(2,"s");
243                          recover = argv[++i];
244                          break;
244                case 't':                               /* timer */
245                        check(2,"i");
246                        ralrm = atoi(argv[++i]);
247                        break;
245   #ifdef  PERSIST
246                  case 'P':                               /* persist file */
247                          if (argv[i][2] == 'P') {
# Line 257 | Line 254 | main(int  argc, char  *argv[])
254                          persistfile(argv[++i]);
255                          break;
256   #endif
257 +                case 't':                               /* timer */
258 +                        check(2,"i");
259 +                        ralrm = atoi(argv[++i]);
260 +                        break;
261                  case 'w':                               /* warnings */
262                          rval = erract[WARNING].pf != NULL;
263                          check_bool(2,rval);
# Line 354 | Line 355 | main(int  argc, char  *argv[])
355          ray_init_pmap();     /* PMAP: set up & load photon maps */
356  
357          marksources();                  /* find and mark sources */
357
358          setambient();                   /* initialize ambient calculation */
359          
360          fflush(stdout);                 /* in case we're duplicating header */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines