15 |
|
int ifd; /* input file descriptor (for select) */ |
16 |
|
} odev; /* our open device */ |
17 |
|
|
18 |
+ |
extern int imm_mode; /* bundles are being delivered immediately */ |
19 |
+ |
|
20 |
|
/* user commands */ |
21 |
|
#define DC_SETVIEW 0 /* set the view */ |
22 |
|
#define DC_GETVIEW 1 /* print the current view */ |
36 |
|
|
37 |
|
#define CTRL(c) ((c)-'@') |
38 |
|
/* commands entered in display window */ |
39 |
< |
#define DV_INIT {'\0','v','l','p','\r',CTRL('R'),'K','R','C','q'} |
39 |
> |
#define DV_INIT {'\0','v','l','p','\r',CTRL('L'),'K','R','C','q'} |
40 |
|
/* commands entered on stdin */ |
41 |
|
#define DC_INIT {"VIEW=","where","last","pause","resume","redraw",\ |
42 |
|
"kill","restart","clobber","quit"} |
68 |
|
|
69 |
|
|
70 |
|
void |
71 |
+ |
dev_clear() : clear device memory |
72 |
+ |
|
73 |
+ |
Clear the device memory in preparation for fresh data. Clearing |
74 |
+ |
the screen is optional. |
75 |
+ |
|
76 |
+ |
|
77 |
+ |
void |
78 |
|
dev_value(c, p, v) : register new point of light |
79 |
|
COLR c; : pixel color (RGBE) |
80 |
|
FVECT p; : world intersection point |
81 |
|
FVECT v; : ray direction vector |
82 |
|
|
83 |
< |
Add the given color point to the display output queue. |
83 |
> |
Add the given color point to the display output queue. If imm_mode is |
84 |
> |
non-zero, then values are being sent in rapid succession. |
85 |
|
|
86 |
|
|
87 |
|
int |