--- ray/src/hd/rhd_qtree.h 1997/11/25 16:52:04 3.5 +++ ray/src/hd/rhd_qtree.h 1998/01/01 13:00:15 3.9 @@ -8,6 +8,13 @@ #include "tonemap.h" #include "rhdriver.h" + +#ifndef int2 +#define int2 short +#endif +#ifndef int4 +#define int4 int +#endif /* child ordering */ #define DL 0 /* down left */ #define DR 1 /* down right */ @@ -33,6 +40,7 @@ typedef struct rtree { extern struct rleaves { float (*wp)[3]; /* world intersection point array */ + int4 *wd; /* world direction array */ TMbright *brt; /* encoded brightness array */ BYTE (*chr)[3]; /* encoded chrominance array */ BYTE (*rgb)[3]; /* tone-mapped color array */ @@ -47,3 +55,8 @@ extern struct rleaves { extern RTREE qtrunk; /* trunk of quadtree */ extern double qtDepthEps; /* epsilon to compare depths (z fraction) */ extern int qtMinNodesiz; /* minimum node dimension (pixels) */ + +extern int rayqleft; /* number of rays to queue before flush */ + +extern int4 encodedir(); +extern double fdir2diff(), dir2diff();