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 |
+ |
#include "color.h" |
10 |
|
#include "tonemap.h" |
11 |
|
#include "rhdriver.h" |
12 |
|
|
12 |
– |
#ifndef int2 |
13 |
– |
#define int2 short |
14 |
– |
#endif |
15 |
– |
#ifndef int4 |
16 |
– |
#define int4 int |
17 |
– |
#endif |
18 |
– |
/* child ordering */ |
13 |
|
#define DL 0 /* down left */ |
14 |
|
#define DR 1 /* down right */ |
15 |
|
#define UL 2 /* up left */ |
49 |
|
extern RTREE qtrunk; /* trunk of quadtree */ |
50 |
|
extern double qtDepthEps; /* epsilon to compare depths (z fraction) */ |
51 |
|
extern int qtMinNodesiz; /* minimum node dimension (pixels) */ |
52 |
+ |
|
53 |
+ |
extern int rayqleft; /* number of rays to queue before flush */ |
54 |
|
|
55 |
|
extern int4 encodedir(); |
56 |
|
extern double fdir2diff(), dir2diff(); |