--- ray/src/hd/rhdriver.h 1998/05/14 13:06:32 3.13 +++ ray/src/hd/rhdriver.h 1998/08/19 17:43:08 3.16 @@ -1,4 +1,4 @@ -/* Copyright (c) 1997 Silicon Graphics, Inc. */ +/* Copyright (c) 1998 Silicon Graphics, Inc. */ /* SCCSid "$SunId$ SGI" */ @@ -13,10 +13,13 @@ extern struct driver { VIEW v; /* base view parameters */ int hres, vres; /* base view resolution */ int ifd; /* input file descriptor (for select) */ + int inpready; /* number of unprocessed input events */ } odev; /* our open device */ extern int imm_mode; /* bundles are being delivered immediately */ +extern double eyesepdist; /* world eye separation distance */ + /* user commands */ #define DC_SETVIEW 0 /* set the base view */ #define DC_GETVIEW 1 /* print the current base view */ @@ -75,20 +78,21 @@ the screen is optional. void -dev_value(c, p, v) : register new point of light +dev_value(c, d, p) : register new point of light COLR c; : pixel color (RGBE) +FVECT d; : ray direction vector FVECT p; : world intersection point -FVECT v; : ray direction vector Add the given color point to the display output queue. If imm_mode is -non-zero, then values are being sent in rapid succession. +non-zero, then values are being sent in rapid succession. If p is NULL, +then the point is at infinity. int dev_flush() : flush the output and prepare for select call Updates display, taking any pending action required before select(2) call. -Returns non-zero if there is device input available. +Returns non-zero if there is device input available, setting odev.inpready. int @@ -97,7 +101,18 @@ dev_input() : process pending display input Called when odev struct file descriptor shows input is ready. Returns flags indicating actions to take in the control process. If the DC_VIEW or DC_RESIZE flag is returned, the odev -structure must be updated beforehand. +structure must be updated beforehand. No events will be +ready when this function returns, and odev.inpready will be 0. + +void +dev_auxcom(cmd, args) : process auxiliary command +char *cmd, *args; : command name and argument string + +Execute an auxiliary command (not one of those listed at the head of +this file). The cmd argument points to the command name itself, and +the args argument points to a string with the rest of the input line. +If the command isn't known or there ARE no auxiliary commands, print +an appropriate COMMAND error message and return. VIEW *