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 |
|
|
12 |
– |
#ifndef int2 |
13 |
– |
#define int2 short |
14 |
– |
#endif |
15 |
– |
#ifndef int4 |
16 |
– |
#define int4 int |
17 |
– |
#endif |
18 |
– |
/* child ordering */ |
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 |
< |
int4 *wd; /* world direction 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 */ |
49 |
|
|
50 |
|
extern int rayqleft; /* number of rays to queue before flush */ |
51 |
|
|
52 |
< |
extern int4 encodedir(); |
52 |
> |
extern int32 encodedir(); |
53 |
|
extern double fdir2diff(), dir2diff(); |