29 |
|
#define sscanvec(s,v) (sscanf(s,"%lf %lf %lf",v,v+1,v+2)==3) |
30 |
|
#endif |
31 |
|
|
32 |
< |
static unsigned long niflush; /* flushes since newimage() */ |
32 |
> |
static RNUMBER niflush; /* flushes since newimage() */ |
33 |
|
|
34 |
|
int |
35 |
|
getrect( /* get a box */ |
197 |
|
} else { /* queuing mode */ |
198 |
|
int rval; |
199 |
|
rayorigin(&thisray, PRIMARY, NULL, NULL); |
200 |
< |
thisray.rno = (unsigned long)p; |
200 |
> |
thisray.rno = (RNUMBER)p; |
201 |
|
rval = ray_pqueue(&thisray); |
202 |
|
if (!rval) |
203 |
|
return(0); |
204 |
|
if (rval < 0) |
205 |
|
return(-1); |
206 |
+ |
/* random color place holder */ |
207 |
+ |
setcolor(p->v, frandom(), frandom(), frandom()); |
208 |
+ |
/* get node for returned ray */ |
209 |
|
p = (PNODE *)thisray.rno; |
210 |
|
} |
211 |
|
|
215 |
|
recolor(p); /* paint it */ |
216 |
|
|
217 |
|
if (dev->flush != NULL) { /* shall we check for input? */ |
218 |
< |
static unsigned long lastflush = 0; |
219 |
< |
unsigned long counter = raynum; |
220 |
< |
int flushintvl; |
218 |
> |
static RNUMBER lastflush = 0; |
219 |
> |
RNUMBER counter = raynum; |
220 |
> |
int flushintvl; |
221 |
|
if (nproc == 1) { |
222 |
|
counter = nrays; |
223 |
|
flushintvl = WFLUSH1; |