52 |
|
|
53 |
|
int dimlist[MAXDIM]; /* sampling dimensions */ |
54 |
|
int ndims = 0; /* number of sampling dimensions */ |
55 |
< |
int samplendx; /* sample index number */ |
55 |
> |
unsigned long samplendx; /* sample index number */ |
56 |
|
|
57 |
|
void (*addobjnotify[])() = {ambnotify, NULL}; |
58 |
|
|
119 |
|
|
120 |
|
int hres, vres; /* resolution for this frame */ |
121 |
|
|
122 |
+ |
extern void sskip_ray(RAY *r, double h, double v); |
123 |
+ |
|
124 |
|
static VIEW lastview; /* the previous view input */ |
125 |
|
|
126 |
|
static void report(int); |
134 |
|
int xlen, int ylen, int b); |
135 |
|
static double pixvalue(COLOR col, int x, int y); |
136 |
|
static int salvage(char *oldfile); |
137 |
< |
static int pixnumber(int x, int y, int xres, int yres); |
137 |
> |
static unsigned long pixnumber(int x, int y, int xres, int yres); |
138 |
|
|
139 |
|
|
140 |
|
|
289 |
|
do { |
290 |
|
if (seq && nextview(stdin) == EOF) |
291 |
|
break; |
292 |
+ |
lastview.type *= seq > 1; |
293 |
|
pctdone = 0.0; |
294 |
|
if (pout != NULL) { |
295 |
|
int myfd; |
477 |
|
/* fill bar */ |
478 |
|
fillscanbar(scanbar, zbar, hres, ypos, ystep); |
479 |
|
if (srcdrawing) /* add bitty sources */ |
480 |
< |
drawsources((COLORV **)scanbar, 3, zbar, 0, hres, ypos, ystep); |
480 |
> |
drawsources((COLORV **)scanbar, out_prims, zbar, 0, hres, ypos, ystep); |
481 |
|
/* write it out */ |
482 |
|
#ifdef SIGCONT |
483 |
|
signal(SIGCONT, SIG_IGN); /* don't interrupt writes */ |
771 |
|
return -1; /* pro forma return */ |
772 |
|
} |
773 |
|
|
774 |
< |
static int |
774 |
> |
static unsigned long |
775 |
|
pixnumber( /* compute pixel index (screen door) */ |
776 |
|
int x, |
777 |
|
int y, |
788 |
|
++nbits; |
789 |
|
} |
790 |
|
coord[0] = x; coord[1] = y; |
791 |
< |
return ((int)hilbert_c2i(2, nbits, coord)); |
791 |
> |
return((unsigned long)hilbert_c2i(2, nbits, coord)); |
792 |
|
} |