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.16 by gwlarson, Thu Nov 5 09:09:32 1998 UTC vs.
Revision 3.20 by greg, Sat Feb 22 02:07:24 2003 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 programs
4   *
# Line 15 | Line 12
12   #define HDMAX           128     /* maximum active holodeck sections */
13   #endif
14  
15 + #ifndef MAXDIRSE
16 + #define MAXDIRSE        32      /* maximum seeks per directory write */
17 + #endif
18 +
19   #define DCINF   (unsigned)((1L<<16)-1)  /* special value for infinity */
20   #define DCLIN   (unsigned)(1L<<11)      /* linear depth limit */
21  
# Line 65 | Line 66 | typedef struct holo {
66          FVECT   xv[3];          /* side vectors (second) */
67          int2    grid[3];        /* grid resolution (third) */
68          int     fd;             /* file descriptor */
69 <        short   dirty;          /* beam index needs update to file */
69 >        struct {
70 >                int     s, n;           /* dirty section start, length */
71 >        } dirseg[MAXDIRSE+1];   /* dirty beam index segments */
72 >        short   dirty;          /* number of dirty segments */
73          double  tlin;           /* linear range for depth encoding */
74          FVECT   wg[3];          /* wall grid vectors (derived) */
71        double  wo[6];          /* wall grid offsets (derived) */
75          int     wi[6];          /* wall super-indices (derived) */
76          char    *priv;          /* pointer to private client data */
77          BEAM    **bl;           /* beam pointers (memory cache) */
# Line 98 | Line 101 | extern double  hdray(), hdinter();
101   extern unsigned hdcode();
102   extern int      hdfilord();
103  
104 + #define FF_NEVER        0               /* never free fragments */
105 + #define FF_WRITE        01              /* free fragment on write */
106 + #define FF_ALLOC        02              /* free fragment on ray alloc */
107 + #define FF_READ         04              /* free fragment on read */
108 + #define FF_KILL         010             /* free fragment on beam kill */
109 +
110 + extern int      hdfragflags;            /* tells when to free fragments */
111   extern unsigned hdcachesize;            /* target cache size (bytes) */
112   extern unsigned long    hdclock;        /* holodeck system clock */
113   extern HOLO     *hdlist[HDMAX+1];       /* holodeck pointers (NULL term.) */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines