348 |
|
render(zfile, oldfile) /* render the scene */ |
349 |
|
char *zfile, *oldfile; |
350 |
|
{ |
351 |
– |
extern long lseek(); |
351 |
|
COLOR *scanbar[MAXDIV+1]; /* scanline arrays of pixel values */ |
352 |
|
float *zbar[MAXDIV+1]; /* z values */ |
353 |
|
char *sampdens; /* previous sample density */ |
400 |
|
if (i >= vres) |
401 |
|
goto alldone; |
402 |
|
if (zfd != -1 && i > 0 && |
403 |
< |
lseek(zfd, (long)i*hres*sizeof(float), 0) == -1) |
403 |
> |
lseek(zfd, (long)i*hres*sizeof(float), 0) < 0) |
404 |
|
error(SYSTEM, "z-file seek error in render"); |
405 |
|
pctdone = 100.0*i/vres; |
406 |
|
if (ralrm > 0) /* report init stats */ |