68 |
|
extern void tranotify(OBJECT obj); |
69 |
|
static void tabin(RAY *r); |
70 |
|
static RayReportCall ourtrace; |
71 |
– |
static RayReportCall printvals; |
71 |
|
|
72 |
< |
static void putscolor(COLORV *scol); |
72 |
> |
RayReportCall printvals; /* print selected ray values */ |
73 |
|
|
74 |
+ |
void putscolor(COLORV *scol); /* convert/print spectral color */ |
75 |
+ |
|
76 |
|
static oputf_t *ray_out[32], *every_out[32]; |
76 |
– |
static putf_t *putreal; |
77 |
|
|
78 |
+ |
putf_t *putreal; /* put out real vector */ |
79 |
+ |
|
80 |
|
void |
81 |
|
quit( /* quit program */ |
82 |
|
int code |
238 |
|
pending |= (n > 1); // time to flush output? |
239 |
|
bool atZero = IsZeroVec(ivbuf[2*n-1]); |
240 |
|
if (pending & (atZero | (n == flushIntvl))) { |
241 |
< |
if (!myRTmanager.FlushQueue()) |
241 |
> |
if (myRTmanager.FlushQueue() <= 0) |
242 |
|
error(USER, "ray flush error"); |
243 |
|
fflush(stdout); |
244 |
|
pending = false; |
413 |
|
return(ncomp); |
414 |
|
} |
415 |
|
|
416 |
< |
static int |
416 |
> |
int |
417 |
|
printvals( /* print requested ray values */ |
418 |
|
RAY *r, void *cd |
419 |
|
) |
768 |
|
putbinary(cout, sizeof(cout), 1, stdout); |
769 |
|
} |
770 |
|
|
771 |
< |
static void |
771 |
> |
void |
772 |
|
putscolor(COLORV *scol) /* output (spectral) color */ |
773 |
|
{ |
774 |
|
static COLORMAT xyz2myrgbmat; |