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.14 by gwlarson, Wed Jun 17 15:44:07 1998 UTC vs.
Revision 3.16 by gwlarson, Wed Aug 19 17:43:08 1998 UTC

# 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 */
# Line 77 | 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
83 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 99 | 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines