--- ray/src/hd/rhd_qtree.h 1997/12/05 15:40:54 3.7 +++ ray/src/hd/rhd_qtree.h 2003/06/20 00:25:49 3.15 @@ -1,21 +1,12 @@ -/* Copyright (c) 1997 Silicon Graphics, Inc. */ - -/* SCCSid "$SunId$ SGI" */ - +/* RCSid $Id: rhd_qtree.h,v 3.15 2003/06/20 00:25:49 greg Exp $ */ /* * Quadtree data structures for holodeck display drivers. */ +#include "color.h" #include "tonemap.h" #include "rhdriver.h" -#ifndef int2 -#define int2 short -#endif -#ifndef int4 -#define int4 long -#endif - /* child ordering */ #define DL 0 /* down left */ #define DR 1 /* down right */ #define UL 2 /* up left */ @@ -40,7 +31,7 @@ typedef struct rtree { extern struct rleaves { float (*wp)[3]; /* world intersection point array */ - int4 *wd; /* world direction array */ + int32 *wd; /* world direction array */ TMbright *brt; /* encoded brightness array */ BYTE (*chr)[3]; /* encoded chrominance array */ BYTE (*rgb)[3]; /* tone-mapped color array */ @@ -55,3 +46,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 int32 encodedir(); +extern double fdir2diff(), dir2diff();