--- ray/src/hd/rhdriver.h 1998/12/10 10:45:55 3.17 +++ ray/src/hd/rhdriver.h 1999/03/04 10:29:23 3.20 @@ -1,4 +1,4 @@ -/* Copyright (c) 1998 Silicon Graphics, Inc. */ +/* Copyright (c) 1999 Silicon Graphics, Inc. */ /* SCCSid "$SunId$ SGI" */ @@ -13,6 +13,7 @@ extern struct driver { VIEW v; /* base view parameters */ int hres, vres; /* base view resolution */ int ifd; /* input file descriptor (for select) */ + int firstuse; /* non-zero if driver can't recycle samples */ int inpready; /* number of unprocessed input events */ } odev; /* our open device */ @@ -132,6 +133,27 @@ views. The zeroeth auxiliary view is the base view it void +dev_section(gf, pf) : add geometry and ports for rendering +char *gf; : geometry file name +char *pf; : portal file name(s) + +Add the given geometry file to the list of geometry to render for +intermediate views if direct geometry rendering is available. The +second argument gives the name(s) of any portal geometry files +associated with this section. Multiple portal file names are separated +by spaces. A single octree file will be given for the geometry, ending +in the ".oct" suffix. Portal files will be given as zero or more +Radiance scene description file names. If no portals are given for +this section, the string may be NULL. The character strings are +guaranteed to be static (or permanently allocated) such that they may +be safely stored as a pointer. The same pointers or file lists may be +(and often are) given repeatedly. If a given geometry file does not +exist, the call should be silently ignored. If gf is NULL, then the +last section has been given, and the display can be updated with the +new information. + + +void dev_close() : close the display Close the display device and free up resources in preparation for exit. @@ -142,3 +164,5 @@ Set odev.v.type=0 and odev.hres=odev.vres=0 when done. extern VIEW *dev_auxview(); + +extern int2 *beam_view();