10 |
|
#include "platform.h" |
11 |
|
#include "ray.h" |
12 |
|
#include "ambient.h" |
13 |
+ |
#include "resolu.h" |
14 |
|
|
15 |
|
|
16 |
|
int dataonly = 0; |
20 |
|
AMBVAL av; |
21 |
|
|
22 |
|
|
23 |
< |
main(argc, argv) /* load ambient values from a file */ |
24 |
< |
int argc; |
25 |
< |
char *argv[]; |
23 |
> |
int |
24 |
> |
main( /* load ambient values from a file */ |
25 |
> |
int argc, |
26 |
> |
char *argv[] |
27 |
> |
) |
28 |
|
{ |
29 |
|
FILE *fp; |
30 |
|
int i; |
88 |
|
} |
89 |
|
|
90 |
|
|
91 |
< |
void |
92 |
< |
lookamb(fp) /* get ambient values from a file */ |
93 |
< |
FILE *fp; |
91 |
> |
extern void |
92 |
> |
lookamb( /* get ambient values from a file */ |
93 |
> |
FILE *fp |
94 |
> |
) |
95 |
|
{ |
96 |
|
while (readambval(&av, fp)) { |
97 |
|
if (dataonly) { |
125 |
|
} |
126 |
|
|
127 |
|
|
128 |
< |
void |
129 |
< |
writamb(fp) /* write binary ambient values */ |
130 |
< |
FILE *fp; |
128 |
> |
extern void |
129 |
> |
writamb( /* write binary ambient values */ |
130 |
> |
FILE *fp |
131 |
> |
) |
132 |
|
{ |
133 |
|
for ( ; ; ) { |
134 |
|
if (!dataonly) |