--- ray/src/hd/rhdriver.h 1997/12/12 11:13:16 3.9 +++ ray/src/hd/rhdriver.h 1998/01/06 05:26:20 3.12 @@ -15,6 +15,8 @@ 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 */ @@ -34,7 +36,7 @@ extern struct driver { #define CTRL(c) ((c)-'@') /* commands entered in display window */ -#define DV_INIT {'\0','v','l','p','\r',CTRL('R'),'K','R','C','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",\ "kill","restart","clobber","quit"} @@ -66,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