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 */ |
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 |
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 |