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.9 by gregl, Thu Dec 18 14:45:59 1997 UTC vs.
Revision 3.13 by gregl, Tue Jan 6 15:08:50 1998 UTC

# Line 18 | Line 18
18   #define int2    short
19   #endif
20   #ifndef int4
21 < #define int4    long
21 > #define int4    int
22   #endif
23  
24   #define DCINF   (unsigned)((1L<<16)-1)  /* special value for infinity */
# Line 73 | Line 73 | typedef struct holo {
73          int     fd;             /* file descriptor */
74          short   dirty;          /* beam index needs update to file */
75          double  tlin;           /* linear range for depth encoding */
76 <        FVECT   wn[3];          /* wall normals (derived) */
77 <        double  wg[3];          /* wall grid multipliers (derived) */
78 <        double  wo[6];          /* wall offsets (derived) */
76 >        FVECT   wg[3];          /* wall grid vectors (derived) */
77 >        double  wo[6];          /* wall grid offsets (derived) */
78          int     wi[6];          /* wall super-indices (derived) */
79          char    *priv;          /* pointer to private client data */
80          BEAM    **bl;           /* beam pointers (memory cache) */
# Line 100 | Line 99 | extern HOLO    *hdinit(), *hdalloc();
99   extern BEAM     *hdgetbeam();
100   extern RAYVAL   *hdnewrays();
101   extern unsigned hdmemuse();
102 < extern long     hdfiluse(), hdfilen();
102 > extern long     hdfiluse(), hdfilen(), hdallocfrag();
103   extern double   hdray(), hdinter();
104   extern unsigned hdcode();
105  
# Line 110 | Line 109 | extern HOLO    *hdlist[HDMAX+1];       /* holodeck pointers (NU
109  
110   extern float    hd_depthmap[];          /* depth conversion map */
111  
112 + extern int      hdwg0[6];               /* wall grid 0 index */
113 + extern int      hdwg1[6];               /* wall grid 1 index */
114 +
115   #define hddepth(hp,dc)  ( (dc) >= DCINF ? FHUGE : \
116                                  (hp)->tlin * ( (dc) >= DCLIN ? \
117                                          hd_depthmap[(dc)-DCLIN] : \
# Line 117 | Line 119 | extern float   hd_depthmap[];          /* depth conversion map *
119  
120   #define HOLOFMT         "Holodeck"      /* file format identifier */
121   #define HOLOVERS        0               /* file format version number */
122 < #define HOLOMAGIC       (327+HOLOVERS)  /* file magic number */
122 > #define HOLOMAGIC       (323+sizeof(long)+8*HOLOVERS)   /* file magic number */
123  
124   /*
125   * A holodeck file consists of an information header terminated by a

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines