12 |
|
#include "ray.h" |
13 |
|
|
14 |
|
|
15 |
< |
int |
16 |
< |
getrenderopt(ac, av) /* get next render option */ |
17 |
< |
int ac; |
18 |
< |
char *av[]; |
15 |
> |
extern int |
16 |
> |
getrenderopt( /* get next render option */ |
17 |
> |
int ac, |
18 |
> |
char *av[] |
19 |
> |
) |
20 |
|
{ |
21 |
|
#define check(ol,al) if (av[0][ol] || \ |
22 |
|
badarg(ac-1,av+1,al)) \ |
140 |
|
} |
141 |
|
if (av[0][2] == 'I') { /* file */ |
142 |
|
rval = wordfile(amblp, |
143 |
< |
getpath(av[1],getlibpath(),R_OK)); |
143 |
> |
getpath(av[1],getrlibpath(),R_OK)); |
144 |
|
if (rval < 0) { |
145 |
|
sprintf(errmsg, |
146 |
|
"cannot open ambient include file \"%s\"", av[0]); |
161 |
|
} |
162 |
|
if (av[0][2] == 'E') { /* file */ |
163 |
|
rval = wordfile(amblp, |
164 |
< |
getpath(av[1],getlibpath(),R_OK)); |
164 |
> |
getpath(av[1],getrlibpath(),R_OK)); |
165 |
|
if (rval < 0) { |
166 |
|
sprintf(errmsg, |
167 |
|
"cannot open ambient exclude file \"%s\"", av[0]); |
211 |
|
} |
212 |
|
|
213 |
|
|
214 |
< |
void |
215 |
< |
print_rdefaults() /* print default render values to stdout */ |
214 |
> |
extern void |
215 |
> |
print_rdefaults(void) /* print default render values to stdout */ |
216 |
|
{ |
216 |
– |
register char *cp; |
217 |
– |
|
217 |
|
printf(do_irrad ? "-i+\t\t\t\t# irradiance calculation on\n" : |
218 |
|
"-i-\t\t\t\t# irradiance calculation off\n"); |
219 |
|
printf(backvis ? "-bv+\t\t\t\t# back face visibility on\n" : |