16 |
|
|
17 |
|
#include "x11icon.h" |
18 |
|
|
19 |
+ |
#ifndef RAYQLEN |
20 |
+ |
#define RAYQLEN 50000 /* max. rays to queue before flush */ |
21 |
+ |
#endif |
22 |
+ |
|
23 |
|
#ifndef FEQ |
24 |
|
#define FEQ(a,b) ((a)-(b) <= FTINY && (a)-(b) >= -FTINY) |
25 |
|
#endif |
104 |
|
XSizeHints oursizhints; |
105 |
|
/* set quadtree globals */ |
106 |
|
qtMinNodesiz = 3; |
107 |
+ |
qtDepthEps = 0.07; |
108 |
|
/* open display server */ |
109 |
|
ourdisplay = XOpenDisplay(NULL); |
110 |
|
if (ourdisplay == NULL) |
167 |
|
XMapWindow(ourdisplay, gwind); |
168 |
|
dev_input(); /* sets size and view angles */ |
169 |
|
/* allocate our leaf pile */ |
170 |
< |
if (!qtAllocLeaves(2 * DisplayWidth(ourdisplay,ourscreen) * |
171 |
< |
DisplayHeight(ourdisplay,ourscreen) / |
172 |
< |
(qtMinNodesiz*qtMinNodesiz))) |
170 |
> |
if (!qtAllocLeaves(DisplayWidth(ourdisplay,ourscreen) * |
171 |
> |
DisplayHeight(ourdisplay,ourscreen) * 3 / |
172 |
> |
(qtMinNodesiz*qtMinNodesiz*2))) |
173 |
|
error(SYSTEM, "insufficient memory for value storage"); |
174 |
|
odev.name = id; |
175 |
|
odev.ifd = ConnectionNumber(ourdisplay); |
266 |
|
{ |
267 |
|
qtUpdate(); |
268 |
|
glFlush(); |
269 |
+ |
rayqleft = RAYQLEN; |
270 |
|
return(XPending(ourdisplay)); |
271 |
|
} |
272 |
|
|
319 |
|
for (cp = tail; *cp && *cp != '.'; cp++) |
320 |
|
; |
321 |
|
if (cp-tail == 3 && !strncmp(tail, "glx", 3)) |
322 |
< |
return(TM_F_CAMERA); |
322 |
> |
return(TM_F_CAMERA|TM_F_NOSTDERR); |
323 |
|
if (cp-tail == 4 && !strncmp(tail, "glxh", 4)) |
324 |
< |
return(TM_F_HUMAN); |
324 |
> |
return(TM_F_HUMAN|TM_F_NOSTDERR); |
325 |
|
error(USER, "illegal driver name"); |
326 |
|
} |
327 |
|
|