| 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 */ |
| 136 |
|
|
| 137 |
|
|
| 138 |
|
void |
| 139 |
< |
dev_section(otf) : add octree geometry for rendering |
| 140 |
< |
char *otf; : octree and portal file names |
| 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 octree file to the list of geometry to be used to render |
| 144 |
< |
intermediate views if direct geometry rendering is available. Additional |
| 145 |
< |
file names (separated by spaces) are Radiance scene files containing |
| 146 |
< |
the geometry for "portals" to separate sections. The given |
| 147 |
< |
character string is guaranteed to be static (or permanently allocated) |
| 148 |
< |
such that it may be safely stored as a pointer. The same pointer or |
| 149 |
< |
file list may be (and often is) given repeatedly. If a given octree |
| 150 |
< |
does not exist, the call should be silently ignored. If otn is NULL, |
| 151 |
< |
then the last octree has been given, and the display can be updated |
| 152 |
< |
with the new information. |
| 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 |
| 166 |
|
************************************************************************/ |
| 167 |
|
|
| 168 |
|
|
| 169 |
+ |
/* |
| 170 |
|
extern VIEW *dev_auxview(); |
| 171 |
+ |
*/ |
| 172 |
+ |
extern int16 *beam_view(VIEW *vn, int hr, int vr); |
| 173 |
|
|
| 174 |
< |
extern int *beam_view(); |
| 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(uby8 rgb[3], int xmin, int ymin, int xmax, int ymax); |
| 186 |
> |
extern void dev_cone(uby8 rgb[3], FVECT ip, double rad); |
| 187 |
> |
|
| 188 |
> |
#ifdef __cplusplus |
| 189 |
> |
} |
| 190 |
> |
#endif |
| 191 |
> |
#endif /* _RAD_RHDRIVER_H_ */ |
| 192 |
> |
|