10 |
|
|
11 |
|
extern struct driver { |
12 |
|
char *name; /* holodeck name or title */ |
13 |
< |
VIEW v; /* preferred view parameters */ |
14 |
< |
int hres, vres; /* device resolution */ |
13 |
> |
VIEW v; /* base view parameters */ |
14 |
> |
int hres, vres; /* base view resolution */ |
15 |
|
int ifd; /* input file descriptor (for select) */ |
16 |
|
} odev; /* our open device */ |
17 |
|
|
18 |
|
extern int imm_mode; /* bundles are being delivered immediately */ |
19 |
|
|
20 |
|
/* user commands */ |
21 |
< |
#define DC_SETVIEW 0 /* set the view */ |
22 |
< |
#define DC_GETVIEW 1 /* print the current view */ |
21 |
> |
#define DC_SETVIEW 0 /* set the base view */ |
22 |
> |
#define DC_GETVIEW 1 /* print the current base view */ |
23 |
|
#define DC_LASTVIEW 2 /* restore previous view */ |
24 |
|
#define DC_PAUSE 3 /* pause the current calculation */ |
25 |
|
#define DC_RESUME 4 /* resume the calculation */ |
51 |
|
char *nm; : appropriate title bar annotation |
52 |
|
|
53 |
|
Sets fields of odev structure and prepares the display for i/o. |
54 |
< |
The view type, horizontal and vertical view angles and other default |
55 |
< |
parameters in odev.v should also be assigned. |
54 |
> |
The base view type, horizontal and vertical view angles and other |
55 |
> |
default parameters in odev.v should also be assigned. |
56 |
|
|
57 |
|
|
58 |
|
int |
59 |
< |
dev_view(nv) : set display view parameters |
59 |
> |
dev_view(nv) : set base view parameters |
60 |
|
VIEW *nv; : the new view |
61 |
|
|
62 |
< |
Updates the display for the given view change. |
62 |
> |
Updates the display for the given base view change. |
63 |
|
Look for nv==&odev.v when making view current after dev_input() |
64 |
|
returns DEV_NEWVIEW flag. Return 1 on success, or 0 if the |
65 |
|
new view would conflict with device requirements. In the latter |
100 |
|
structure must be updated beforehand. |
101 |
|
|
102 |
|
|
103 |
+ |
VIEW * |
104 |
+ |
dev_auxview(n, hv) : return nth auxiliary view |
105 |
+ |
int n; : auxiliary view number |
106 |
+ |
int hv[2]; : returned horiz. and vert. image resolution |
107 |
+ |
|
108 |
+ |
Return the nth auxiliary view associated with the current base view. |
109 |
+ |
The hv entries are assigned the horizontal and vertical view resolution, |
110 |
+ |
respectively. Function returns NULL if there are no more auxiliary |
111 |
+ |
views. The zeroeth auxiliary view is the base view itself. |
112 |
+ |
|
113 |
+ |
|
114 |
|
void |
115 |
|
dev_close() : close the display |
116 |
|
|
119 |
|
|
120 |
|
|
121 |
|
************************************************************************/ |
122 |
+ |
|
123 |
+ |
|
124 |
+ |
extern VIEW *dev_auxview(); |