33 |
|
|
34 |
|
extern struct rleaves { |
35 |
|
float (*wp)[3]; /* world intersection point array */ |
36 |
+ |
short (*wd)[2]; /* world direction array */ |
37 |
|
TMbright *brt; /* encoded brightness array */ |
38 |
|
BYTE (*chr)[3]; /* encoded chrominance array */ |
39 |
|
BYTE (*rgb)[3]; /* tone-mapped color array */ |
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) */ |
48 |
– |
|
49 |
– |
|
50 |
– |
/************************************************************************ |
51 |
– |
* These driver support routines implement the dev_value() call, but |
52 |
– |
* require the following callbacks: |
53 |
– |
|
54 |
– |
dev_paintr(rgb, x0, y0, x1, y1) : paint a rectangle |
55 |
– |
BYTE rgb[3]; : rectangle color |
56 |
– |
int x0, y0, x1, y1; : rectangle boundaries |
57 |
– |
|
58 |
– |
Draws an open rectangle between [x0,x1) and [y0,y1) with the color rgb. |
59 |
– |
This function is called many times by qtUpdate(), qtRedraw() and qtReplant(). |
60 |
– |
|
61 |
– |
************************************************************************/ |