15 |
|
#ifdef BSD |
16 |
|
#include <sys/time.h> |
17 |
|
#include <sys/resource.h> |
18 |
+ |
#else |
19 |
+ |
#include <signal.h> |
20 |
|
#endif |
21 |
|
|
22 |
|
#include "view.h" |
26 |
|
VIEW ourview = STDVIEW; /* view parameters */ |
27 |
|
int hresolu = 512; /* horizontal resolution */ |
28 |
|
int vresolu = 512; /* vertical resolution */ |
29 |
+ |
double pixaspect = 1.0; /* pixel aspect ratio */ |
30 |
|
|
31 |
|
int psample = 4; /* pixel sample size */ |
32 |
|
double maxdiff = .05; /* max. difference for interpolation */ |
87 |
|
sprintf(errmsg, "%ld rays, %4.2f%% done after %5.4f CPU hours\n", |
88 |
|
nrays, pctdone, t/3600.0); |
89 |
|
#else |
90 |
+ |
signal(SIGALRM, report); |
91 |
|
sprintf(errmsg, "%ld rays, %4.2f%% done\n", nrays, pctdone); |
92 |
|
#endif |
93 |
|
eputs(errmsg); |