45 |
|
extern int hresolu; /* horizontal resolution */ |
46 |
|
extern int vresolu; /* vertical resolution */ |
47 |
|
|
48 |
< |
int castonly = 0; /* only doing ray-casting? */ |
48 |
> |
extern int castonly; /* only doing ray-casting? */ |
49 |
|
|
50 |
|
#ifndef MAXTSET |
51 |
|
#define MAXTSET 8191 /* maximum number in trace set */ |
106 |
|
} |
107 |
|
|
108 |
|
|
109 |
< |
char * |
109 |
> |
const char * |
110 |
|
formstr( /* return format identifier */ |
111 |
|
int f |
112 |
|
) |
160 |
|
/* set up output */ |
161 |
|
if (castonly || every_out[0] != NULL) |
162 |
|
nproc = 1; /* don't bother multiprocessing */ |
163 |
< |
if (Tflag && every_out[0] != NULL) |
164 |
< |
trace_sources(); /* asking to trace light sources */ |
163 |
> |
if (every_out[0] != NULL) { |
164 |
> |
trace = ourtrace; /* enable full tree tracing */ |
165 |
> |
if (Tflag) /* light sources, too? */ |
166 |
> |
trace_sources(); |
167 |
> |
} |
168 |
|
if ((nextflush > 0) & (nproc > nextflush)) { |
169 |
|
error(WARNING, "reducing number of processes to match flush interval"); |
170 |
|
nproc = nextflush; |
254 |
|
if (!vs[1]) break; |
255 |
|
*table = NULL; |
256 |
|
table = every_out; |
254 |
– |
trace = ourtrace; |
257 |
|
castonly = 0; |
258 |
|
break; |
259 |
|
case 'o': /* origin */ |