| 1 |
< |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
| 1 |
> |
/* Copyright (c) 1999 Silicon Graphics, Inc. */ |
| 2 |
|
|
| 3 |
|
/* SCCSid "$SunId$ SGI" */ |
| 4 |
|
|
| 13 |
|
VIEW v; /* base view parameters */ |
| 14 |
|
int hres, vres; /* base view resolution */ |
| 15 |
|
int ifd; /* input file descriptor (for select) */ |
| 16 |
+ |
int firstuse; /* non-zero if driver can't recycle samples */ |
| 17 |
|
int inpready; /* number of unprocessed input events */ |
| 18 |
|
} odev; /* our open device */ |
| 19 |
|
|
| 133 |
|
|
| 134 |
|
|
| 135 |
|
void |
| 136 |
+ |
dev_section(gf, pf) : add geometry and ports for rendering |
| 137 |
+ |
char *gf; : geometry file name |
| 138 |
+ |
char *pf; : portal file name(s) |
| 139 |
+ |
|
| 140 |
+ |
Add the given geometry file to the list of geometry to render for |
| 141 |
+ |
intermediate views if direct geometry rendering is available. The |
| 142 |
+ |
second argument gives the name(s) of any portal geometry files |
| 143 |
+ |
associated with this section. Multiple portal file names are separated |
| 144 |
+ |
by spaces. A single octree file will be given for the geometry, ending |
| 145 |
+ |
in the ".oct" suffix. Portal files will be given as zero or more |
| 146 |
+ |
Radiance scene description file names. If no portals are given for |
| 147 |
+ |
this section, the string may be NULL. The character strings are |
| 148 |
+ |
guaranteed to be static (or permanently allocated) such that they may |
| 149 |
+ |
be safely stored as a pointer. The same pointers or file lists may be |
| 150 |
+ |
(and often are) given repeatedly. If a given geometry file does not |
| 151 |
+ |
exist, the call should be silently ignored. If gf is NULL, then the |
| 152 |
+ |
last section has been given, and the display can be updated with the |
| 153 |
+ |
new information. |
| 154 |
+ |
|
| 155 |
+ |
|
| 156 |
+ |
void |
| 157 |
|
dev_close() : close the display |
| 158 |
|
|
| 159 |
|
Close the display device and free up resources in preparation for exit. |
| 164 |
|
|
| 165 |
|
|
| 166 |
|
extern VIEW *dev_auxview(); |
| 167 |
+ |
|
| 168 |
+ |
extern int2 *beam_view(); |