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

Comparing ray/src/hd/rhd_qtree.h (file contents):
Revision 3.3 by gregl, Fri Nov 21 13:35:58 1997 UTC vs.
Revision 3.10 by gwlarson, Wed Aug 12 17:56:26 1998 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1997 Silicon Graphics, Inc. */
1 > /* Copyright (c) 1998 Silicon Graphics, Inc. */
2  
3   /* SCCSid "$SunId$ SGI" */
4  
# Line 8 | Line 8
8  
9   #include "tonemap.h"
10   #include "rhdriver.h"
11 <                                /* quantity of leaves to free at a time */
12 < #ifndef LFREEPCT
13 < #define LFREEPCT        15
14 < #endif
15 <                                /* child ordering */
11 >
12   #define DL              0               /* down left */
13   #define DR              1               /* down right */
14   #define UL              2               /* up left */
# Line 37 | Line 33 | typedef struct rtree {
33  
34   extern struct rleaves {
35          float           (*wp)[3];       /* world intersection point array */
36 +        int4            *wd;            /* world direction array */
37          TMbright        *brt;           /* encoded brightness array */
38          BYTE            (*chr)[3];      /* encoded chrominance array */
39          BYTE            (*rgb)[3];      /* tone-mapped color array */
# Line 46 | Line 43 | extern struct rleaves {
43          char            *base;          /* base of allocated memory */
44   }       qtL;                    /* our pile of leaves */
45  
46 + #define is_stump(t)     (!((t)->flgs & (BR_ANY|LF_ANY)))
47 +
48   extern RTREE    qtrunk;         /* trunk of quadtree */
49   extern double   qtDepthEps;     /* epsilon to compare depths (z fraction) */
50   extern int      qtMinNodesiz;   /* minimum node dimension (pixels) */
51  
52 + extern int      rayqleft;       /* number of rays to queue before flush */
53  
54 < /************************************************************************
55 < * These driver support routines implement the dev_value() call, but
56 < * require the following callbacks:
57 <
58 < dev_paintr(rgb, x0, y0, x1, y1) : paint a rectangle
59 < BYTE    rgb[3];                 : rectangle color
60 < int     x0, y0, x1, y1;         : rectangle boundaries
61 <
62 < Draws an open rectangle between [x0,x1) and [y0,y1) with the color rgb.
63 < This function is called many times by qtUpdate(), qtRedraw() and qtReplant().
64 <
65 < ************************************************************************/
54 > extern int4     encodedir();
55 > extern double   fdir2diff(), dir2diff();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines