ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rhdriver.h
(Generate patch)

Comparing ray/src/hd/rhdriver.h (file contents):
Revision 3.16 by gwlarson, Wed Aug 19 17:43:08 1998 UTC vs.
Revision 3.17 by gwlarson, Thu Dec 10 10:45:55 1998 UTC

# Line 16 | Line 16 | extern struct driver {
16          int     inpready;       /* number of unprocessed input events */
17   } odev;                 /* our open device */
18  
19 + extern char     odev_args[];    /* command arguments, if any */
20 +
21   extern int      imm_mode;       /* bundles are being delivered immediately */
22  
23   extern double   eyesepdist;     /* world eye separation distance */
# Line 24 | Line 26 | extern double  eyesepdist;     /* world eye separation dist
26   #define DC_SETVIEW      0               /* set the base view */
27   #define DC_GETVIEW      1               /* print the current base view */
28   #define DC_LASTVIEW     2               /* restore previous view */
29 < #define DC_PAUSE        3               /* pause the current calculation */
30 < #define DC_RESUME       4               /* resume the calculation */
31 < #define DC_REDRAW       5               /* redraw from server */
32 < #define DC_KILL         6               /* kill rtrace process(es) */
33 < #define DC_RESTART      7               /* restart rtrace process(es) */
34 < #define DC_CLOBBER      8               /* clobber holodeck file */
35 < #define DC_QUIT         9               /* quit the program */
29 > #define DC_FOCUS        3               /* view focus */
30 > #define DC_PAUSE        4               /* pause the current calculation */
31 > #define DC_RESUME       5               /* resume the calculation */
32 > #define DC_REDRAW       6               /* redraw from server */
33 > #define DC_KILL         7               /* kill rtrace process(es) */
34 > #define DC_RESTART      8               /* restart rtrace process(es) */
35 > #define DC_CLOBBER      9               /* clobber holodeck file */
36 > #define DC_QUIT         10              /* quit the program */
37  
38 < #define DC_NCMDS        10              /* number of commands */
38 > #define DC_NCMDS        11              /* number of commands */
39  
40                                  /* dev_input() returns flags from above */
41   #define DFL(dc)         (1<<(dc))
42  
43   #define CTRL(c)         ((c)-'@')
44                                  /* commands entered in display window */
45 < #define DV_INIT         {'\0','v','l','p','\r',CTRL('L'),'K','R','C','q'}
45 > #define DV_INIT         {'\0','v','l','f','p','\r',CTRL('L'),'K','R','C','q'}
46                                  /* commands entered on stdin */
47 < #define DC_INIT         {"VIEW=","where","last","pause","resume","redraw",\
48 <                                "kill","restart","clobber","quit"}
47 > #define DC_INIT         {"VIEW=","where","last","frame","pause","resume",\
48 >                                "redraw","kill","restart","clobber","quit"}
49  
50  
51   /************************************************************************
# Line 101 | Line 104 | dev_input()            : process pending display input
104   Called when odev struct file descriptor shows input is ready.
105   Returns flags indicating actions to take in the control process.
106   If the DC_VIEW or DC_RESIZE flag is returned, the odev
107 < structure must be updated beforehand.  No events will be
108 < ready when this function returns, and odev.inpready will be 0.
107 > structure must be updated beforehand.  If the DC_FOCUS
108 > flag is set, then odev_args contains the frame dimensions.
109 > No events shall remain when this function returns,
110 > and odev.inpready will therefore be 0.
111  
112   void
113   dev_auxcom(cmd, args)   : process auxiliary command

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines