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.17 by gwlarson, Thu Dec 10 10:45:55 1998 UTC vs.
Revision 3.25 by schorsch, Wed Jun 7 17:52:04 2006 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1998 Silicon Graphics, Inc. */
2 <
3 < /* SCCSid "$SunId$ SGI" */
4 <
1 > /* RCSid: $Id$ */
2   /*
3   * Header file for holodeck device driver routines.
4   */
5 + #ifndef _RAD_RHDRIVER_H_
6 + #define _RAD_RHDRIVER_H_
7  
8   #include "view.h"
9  
10 + #ifdef __cplusplus
11 + extern "C" {
12 + #endif
13 +
14   extern struct driver {
15          char    *name;          /* holodeck name or title */
16          VIEW    v;              /* base view parameters */
17          int     hres, vres;     /* base view resolution */
18          int     ifd;            /* input file descriptor (for select) */
19 +        int     firstuse;       /* non-zero if driver can't recycle samples */
20          int     inpready;       /* number of unprocessed input events */
21   } odev;                 /* our open device */
22  
# Line 132 | Line 136 | views.  The zeroeth auxiliary view is the base view it
136  
137  
138   void
139 + dev_section(gf, pf)     : add geometry and ports for rendering
140 + char    *gf;            : geometry file name
141 + char    *pf;            : portal file name(s)
142 +
143 + Add the given geometry file to the list of geometry to render for
144 + intermediate views if direct geometry rendering is available.  The
145 + second argument gives the name(s) of any portal geometry files
146 + associated with this section.  Multiple portal file names are separated
147 + by spaces.  A single octree file will be given for the geometry, ending
148 + in the ".oct" suffix.  Portal files will be given as zero or more
149 + Radiance scene description file names.  If no portals are given for
150 + this section, the string may be NULL.  The character strings are
151 + guaranteed to be static (or permanently allocated) such that they may
152 + be safely stored as a pointer.  The same pointers or file lists may be
153 + (and often are) given repeatedly.  If a given geometry file does not
154 + exist, the call should be silently ignored.  If gf is NULL, then the
155 + last section has been given, and the display can be updated with the
156 + new information.
157 +
158 +
159 + void
160   dev_close()             : close the display
161  
162   Close the display device and free up resources in preparation for exit.
# Line 141 | Line 166 | Set odev.v.type=0 and odev.hres=odev.vres=0 when done.
166   ************************************************************************/
167  
168  
169 + /*
170   extern VIEW     *dev_auxview();
171 + */
172 + extern int16    *beam_view(VIEW *vn, int hr, int vr);
173 +
174 +
175 + extern void dev_open(char  *id);
176 + extern void dev_close(void);
177 + extern void dev_clear(void);
178 + extern int dev_view(register VIEW *nv);
179 + extern void dev_section(char *gfn, char *pfn);
180 + extern void dev_auxcom(char *cmd, char *args);
181 + extern VIEW *dev_auxview(int n, int hvres[2]);
182 + extern int dev_input(void);
183 + extern void dev_value(COLR c, FVECT d, FVECT p);
184 + extern int dev_flush(void);
185 + extern void dev_paintr(BYTE rgb[3], int xmin, int ymin, int xmax, int ymax);
186 + extern void dev_cone(BYTE rgb[3], FVECT ip, double rad);
187 +
188 + #ifdef __cplusplus
189 + }
190 + #endif
191 + #endif /* _RAD_RHDRIVER_H_ */
192 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines