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.38 by greg, Tue Apr 22 17:12:25 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 109 | Line 110 | main(int  argc, char  *argv[])
110          strcat(RFeatureList, RPICT_FEATURES);
111          if (argc > 1 && !strcmp(argv[1], "-features"))
112                  return feature_status(argc-2, argv+2);
113 +                                        /* initialize calcomp routines */
114 +        initfunc();
115                                          /* option city */
116          for (i = 1; i < argc; i++) {
117                                                  /* expand arguments */
# Line 241 | Line 244 | main(int  argc, char  *argv[])
244                                  check(2,"s");
245                          recover = argv[++i];
246                          break;
244                case 't':                               /* timer */
245                        check(2,"i");
246                        ralrm = atoi(argv[++i]);
247                        break;
247   #ifdef  PERSIST
248                  case 'P':                               /* persist file */
249                          if (argv[i][2] == 'P') {
# Line 257 | Line 256 | main(int  argc, char  *argv[])
256                          persistfile(argv[++i]);
257                          break;
258   #endif
259 +                case 't':                               /* timer */
260 +                        check(2,"i");
261 +                        ralrm = atoi(argv[++i]);
262 +                        break;
263                  case 'w':                               /* warnings */
264                          rval = erract[WARNING].pf != NULL;
265                          check_bool(2,rval);
# Line 354 | Line 357 | main(int  argc, char  *argv[])
357          ray_init_pmap();     /* PMAP: set up & load photon maps */
358  
359          marksources();                  /* find and mark sources */
357
360          setambient();                   /* initialize ambient calculation */
361          
362          fflush(stdout);                 /* in case we're duplicating header */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines