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" |
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 */ |
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') { |
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); |
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 */ |