| 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 */ |
| 23 |
|
#define DC_LASTVIEW 2 /* restore previous view */ |
| 24 |
|
#define DC_PAUSE 3 /* pause the current calculation */ |
| 25 |
|
#define DC_RESUME 4 /* resume the calculation */ |
| 26 |
< |
#define DC_REDRAW 5 /* redraw from server */ |
| 27 |
< |
#define DC_QUIT 6 /* quit the program */ |
| 26 |
> |
#define DC_REDRAW 5 /* redraw from server */ |
| 27 |
> |
#define DC_KILL 6 /* kill rtrace process(es) */ |
| 28 |
> |
#define DC_RESTART 7 /* restart rtrace process(es) */ |
| 29 |
> |
#define DC_CLOBBER 8 /* clobber holodeck file */ |
| 30 |
> |
#define DC_QUIT 9 /* quit the program */ |
| 31 |
|
|
| 32 |
< |
#define DC_NCMDS 7 /* number of commands */ |
| 32 |
> |
#define DC_NCMDS 10 /* number of commands */ |
| 33 |
|
|
| 34 |
|
/* dev_input() returns flags from above */ |
| 35 |
|
#define DFL(dc) (1<<(dc)) |
| 36 |
|
|
| 37 |
|
#define CTRL(c) ((c)-'@') |
| 38 |
|
/* commands entered in display window */ |
| 39 |
< |
#define DV_INIT {'\0','v','l','p','\r',CTRL('R'),'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 |
< |
"quit"} |
| 42 |
> |
"kill","restart","clobber","quit"} |
| 43 |
|
|
| 44 |
|
|
| 45 |
|
/************************************************************************ |
| 73 |
|
FVECT p; : world intersection point |
| 74 |
|
FVECT v; : ray direction vector |
| 75 |
|
|
| 76 |
< |
Add the given color point to the display output queue. |
| 76 |
> |
Add the given color point to the display output queue. If imm_mode is |
| 77 |
> |
non-zero, then values are being sent in rapid succession. |
| 78 |
|
|
| 79 |
|
|
| 80 |
|
int |