--- ray/src/hd/rhdriver.h 1997/12/11 16:45:59 3.8 +++ ray/src/hd/rhdriver.h 1998/01/06 05:26:20 3.12 @@ -15,26 +15,31 @@ extern struct driver { int ifd; /* input file descriptor (for select) */ } odev; /* our open device */ +extern int imm_mode; /* bundles are being delivered immediately */ + /* user commands */ #define DC_SETVIEW 0 /* set the view */ #define DC_GETVIEW 1 /* print the current view */ #define DC_LASTVIEW 2 /* restore previous view */ #define DC_PAUSE 3 /* pause the current calculation */ #define DC_RESUME 4 /* resume the calculation */ -#define DC_REDRAW 5 /* redraw from server */ -#define DC_QUIT 6 /* quit the program */ +#define DC_REDRAW 5 /* redraw from server */ +#define DC_KILL 6 /* kill rtrace process(es) */ +#define DC_RESTART 7 /* restart rtrace process(es) */ +#define DC_CLOBBER 8 /* clobber holodeck file */ +#define DC_QUIT 9 /* quit the program */ -#define DC_NCMDS 7 /* number of commands */ +#define DC_NCMDS 10 /* number of commands */ /* dev_input() returns flags from above */ #define DFL(dc) (1<<(dc)) #define CTRL(c) ((c)-'@') /* commands entered in display window */ -#define DV_INIT {'\0','v','l','p','\r',CTRL('R'),'q'} +#define DV_INIT {'\0','v','l','p','\r',CTRL('L'),'K','R','C','q'} /* commands entered on stdin */ #define DC_INIT {"VIEW=","where","last","pause","resume","redraw",\ - "quit"} + "kill","restart","clobber","quit"} /************************************************************************ @@ -63,12 +68,20 @@ error(COMMAND, "appropriate user warning"). void +dev_clear() : clear device memory + +Clear the device memory in preparation for fresh data. Clearing +the screen is optional. + + +void dev_value(c, p, v) : register new point of light COLR c; : pixel color (RGBE) FVECT p; : world intersection point FVECT v; : ray direction vector -Add the given color point to the display output queue. +Add the given color point to the display output queue. If imm_mode is +non-zero, then values are being sent in rapid succession. int