1 |
< |
/* Copyright (c) 1997 Silicon Graphics, Inc. */ |
2 |
< |
|
3 |
< |
/* SCCSid "$SunId$ SGI" */ |
4 |
< |
|
1 |
> |
/* RCSid $Id$ */ |
2 |
|
/* |
3 |
|
* Quadtree data structures for holodeck display drivers. |
4 |
|
*/ |
5 |
|
|
6 |
+ |
#include "color.h" |
7 |
|
#include "tonemap.h" |
8 |
|
#include "rhdriver.h" |
9 |
< |
/* child ordering */ |
9 |
> |
|
10 |
|
#define DL 0 /* down left */ |
11 |
|
#define DR 1 /* down right */ |
12 |
|
#define UL 2 /* up left */ |
31 |
|
|
32 |
|
extern struct rleaves { |
33 |
|
float (*wp)[3]; /* world intersection point array */ |
34 |
+ |
int32 *wd; /* world direction array */ |
35 |
|
TMbright *brt; /* encoded brightness array */ |
36 |
|
BYTE (*chr)[3]; /* encoded chrominance array */ |
37 |
|
BYTE (*rgb)[3]; /* tone-mapped color array */ |
46 |
|
extern RTREE qtrunk; /* trunk of quadtree */ |
47 |
|
extern double qtDepthEps; /* epsilon to compare depths (z fraction) */ |
48 |
|
extern int qtMinNodesiz; /* minimum node dimension (pixels) */ |
49 |
+ |
|
50 |
+ |
extern int rayqleft; /* number of rays to queue before flush */ |
51 |
+ |
|
52 |
+ |
extern int32 encodedir(); |
53 |
+ |
extern double fdir2diff(), dir2diff(); |