1 |
< |
/* Copyright (c) 1997 Silicon Graphics, Inc. */ |
1 |
> |
/* Copyright (c) 1998 Silicon Graphics, Inc. */ |
2 |
|
|
3 |
|
/* SCCSid "$SunId$ SGI" */ |
4 |
|
|
6 |
|
* Quadtree data structures for holodeck display drivers. |
7 |
|
*/ |
8 |
|
|
9 |
+ |
#undef NOPROTO |
10 |
+ |
#define NOPROTO 1 |
11 |
+ |
#include "color.h" |
12 |
|
#include "tonemap.h" |
13 |
|
#include "rhdriver.h" |
14 |
< |
/* child ordering */ |
14 |
> |
|
15 |
|
#define DL 0 /* down left */ |
16 |
|
#define DR 1 /* down right */ |
17 |
|
#define UL 2 /* up left */ |
36 |
|
|
37 |
|
extern struct rleaves { |
38 |
|
float (*wp)[3]; /* world intersection point array */ |
39 |
+ |
int4 *wd; /* world direction array */ |
40 |
|
TMbright *brt; /* encoded brightness array */ |
41 |
|
BYTE (*chr)[3]; /* encoded chrominance array */ |
42 |
|
BYTE (*rgb)[3]; /* tone-mapped color array */ |
51 |
|
extern RTREE qtrunk; /* trunk of quadtree */ |
52 |
|
extern double qtDepthEps; /* epsilon to compare depths (z fraction) */ |
53 |
|
extern int qtMinNodesiz; /* minimum node dimension (pixels) */ |
54 |
+ |
|
55 |
+ |
extern int rayqleft; /* number of rays to queue before flush */ |
56 |
+ |
|
57 |
+ |
extern int4 encodedir(); |
58 |
+ |
extern double fdir2diff(), dir2diff(); |