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.13 by gwlarson, Thu May 14 13:06:32 1998 UTC vs.
Revision 3.16 by gwlarson, Wed Aug 19 17:43:08 1998 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1997 Silicon Graphics, Inc. */
1 > /* Copyright (c) 1998 Silicon Graphics, Inc. */
2  
3   /* SCCSid "$SunId$ SGI" */
4  
# Line 13 | Line 13 | extern struct driver {
13          VIEW    v;              /* base view parameters */
14          int     hres, vres;     /* base view resolution */
15          int     ifd;            /* input file descriptor (for select) */
16 +        int     inpready;       /* number of unprocessed input events */
17   } odev;                 /* our open device */
18  
19   extern int      imm_mode;       /* bundles are being delivered immediately */
20  
21 + extern double   eyesepdist;     /* world eye separation distance */
22 +
23                                  /* user commands */
24   #define DC_SETVIEW      0               /* set the base view */
25   #define DC_GETVIEW      1               /* print the current base view */
# Line 75 | Line 78 | the screen is optional.
78  
79  
80   void
81 < dev_value(c, p, v)      : register new point of light
81 > dev_value(c, d, p)      : register new point of light
82   COLR    c;              : pixel color (RGBE)
83 + FVECT   d;              : ray direction vector
84   FVECT   p;              : world intersection point
81 FVECT   v;              : ray direction vector
85  
86   Add the given color point to the display output queue.  If imm_mode is
87 < non-zero, then values are being sent in rapid succession.
87 > non-zero, then values are being sent in rapid succession.  If p is NULL,
88 > then the point is at infinity.
89  
90  
91   int
92   dev_flush()             : flush the output and prepare for select call
93  
94   Updates display, taking any pending action required before select(2) call.
95 < Returns non-zero if there is device input available.
95 > Returns non-zero if there is device input available, setting odev.inpready.
96  
97  
98   int
# Line 97 | Line 101 | dev_input()            : process pending display input
101   Called when odev struct file descriptor shows input is ready.
102   Returns flags indicating actions to take in the control process.
103   If the DC_VIEW or DC_RESIZE flag is returned, the odev
104 < structure must be updated beforehand.
104 > structure must be updated beforehand.  No events will be
105 > ready when this function returns, and odev.inpready will be 0.
106 >
107 > void
108 > dev_auxcom(cmd, args)   : process auxiliary command
109 > char    *cmd, *args;    : command name and argument string
110 >
111 > Execute an auxiliary command (not one of those listed at the head of
112 > this file).  The cmd argument points to the command name itself, and
113 > the args argument points to a string with the rest of the input line.
114 > If the command isn't known or there ARE no auxiliary commands, print
115 > an appropriate COMMAND error message and return.
116  
117  
118   VIEW *

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines