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; |
252 |
|
if (vcount) |
253 |
|
error(WARNING, feof(inpfp) ? "unexpected EOF on input" : |
254 |
|
"input read error"); |
255 |
< |
if (fflush(stdout) < 0) |
256 |
< |
error(SYSTEM, "write error"); |
255 |
> |
if (myRTmanager.FlushQueue() < 0 || fflush(stdout) < 0) |
256 |
> |
error(SYSTEM, "final flush error"); |
257 |
|
if (fname != NULL) { |
258 |
|
fclose(inpfp); |
259 |
|
inpfp = NULL; |