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

Comparing ray/src/rt/driver.h (file contents):
Revision 1.5 by greg, Tue Jan 30 11:37:34 1990 UTC vs.
Revision 1.6 by greg, Thu Feb 22 11:46:09 1990 UTC

# Line 15 | Line 15 | struct driver {                                /* driver functions */
15          int  (*getcur)();                       /* get cursor position */
16          int  (*comout)();                       /* command line output */
17          int  (*comin)();                        /* command line input */
18 +        int  (*flush)();                        /* flush output */
19          double  pixaspect;                      /* pixel aspect ratio */
20          int  xsiz, ysiz;                        /* device size */
21          int  inpready;                          /* input ready on device */
# Line 33 | Line 34 | extern struct driver  *comm_init();    /* stream interfac
34   #define COM_GETCUR              2
35   #define COM_COMOUT              3
36   #define COM_COMIN               4
37 < #define NREQUESTS               5       /* number of valid requests */
37 > #define COM_FLUSH               5
38 > #define NREQUESTS               6       /* number of valid requests */
39  
40   extern struct device {                  /* interactive device */
41          char  *name;                            /* device name */
# Line 75 | Line 77 | extern struct device {                 /* interactive device */
77   *  int  xmin, ymin, xmax, ymax;
78   *  {
79   *      Paint a half-open rectangle from (xmin,ymin) to (xmax,ymax)
80 < *      with the color col.  Can call repaint() if necessary.
80 > *      with the color col.
81   *  }
82   *  (*dev->getcur)(xp, yp)
83   *  int  *xp, *yp;
# Line 103 | Line 105 | extern struct device {                 /* interactive device */
105   *      terminate input and return the string with only that character.
106   *      The input string should not contain a newline.  The routines in
107   *      editline.c may be useful.  Comin must work in consort with comout.
108 + *  }
109 + *  (*dev->flush)()
110 + *  {
111 + *      Flush output to the display.  This is guaranteed to be called
112 + *      frequently enough to keep the display up to date.
113 + *      This is an ideal time to check for device input.
114 + *      This function can be NULL for devices that don't need it.
115   *  }
116   *  xsiz, ysiz
117   *      The maximum allowable x and y dimensions.  If any

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines