ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/holo.h
(Generate patch)

Comparing ray/src/hd/holo.h (file contents):
Revision 3.15 by gwlarson, Wed Aug 12 17:54:15 1998 UTC vs.
Revision 3.17 by gwlarson, Mon Nov 9 17:10:53 1998 UTC

# Line 15 | Line 15
15   #define HDMAX           128     /* maximum active holodeck sections */
16   #endif
17  
18 + #ifndef MAXDIRSE
19 + #define MAXDIRSE        32      /* maximum seeks per directory write */
20 + #endif
21 +
22   #define DCINF   (unsigned)((1L<<16)-1)  /* special value for infinity */
23   #define DCLIN   (unsigned)(1L<<11)      /* linear depth limit */
24  
# Line 65 | Line 69 | typedef struct holo {
69          FVECT   xv[3];          /* side vectors (second) */
70          int2    grid[3];        /* grid resolution (third) */
71          int     fd;             /* file descriptor */
72 <        short   dirty;          /* beam index needs update to file */
72 >        struct {
73 >                int     s, n;           /* dirty section start, length */
74 >        } dirseg[MAXDIRSE+1];   /* dirty beam index segments */
75 >        short   dirty;          /* number of dirty segments */
76          double  tlin;           /* linear range for depth encoding */
77          FVECT   wg[3];          /* wall grid vectors (derived) */
78          double  wo[6];          /* wall grid offsets (derived) */
# Line 86 | Line 93 | typedef struct {
93  
94   #define bnrays(hp,i)    ((hp)->bl[i]!=NULL ? (hp)->bl[i]->nrm : (hp)->bi[i].nrd)
95  
96 < #define hdflush(hp)     (hdfreebeam(hp,0) && hdsync(hp,0))
97 < #define hdclobber(hp)   (hdkillbeam(hp,0) && hdsync(hp,0))
96 > #define hdflush(hp)     (hdfreebeam(hp,0), hdsync(hp,0))
97 > #define hdclobber(hp)   (hdkillbeam(hp,0), hdsync(hp,0))
98  
99   extern HOLO     *hdinit(), *hdalloc();
100   extern BEAM     *hdgetbeam();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines