ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/hd/rhd_glx.c
(Generate patch)

Comparing ray/src/hd/rhd_glx.c (file contents):
Revision 3.9 by gregl, Tue Dec 30 16:59:46 1997 UTC vs.
Revision 3.12 by gregl, Thu Jan 1 16:28:44 1998 UTC

# Line 16 | Line 16 | static char SCCSid[] = "$SunId$ SGI";
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
# Line 164 | Line 168 | char  *id;
168          dev_input();                    /* sets size and view angles */
169                                          /* allocate our leaf pile */
170          if (!qtAllocLeaves(DisplayWidth(ourdisplay,ourscreen) *
171 <                        DisplayHeight(ourdisplay,ourscreen) /
172 <                        (qtMinNodesiz*qtMinNodesiz)))
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);
# Line 262 | Line 266 | dev_flush()                    /* flush output */
266   {
267          qtUpdate();
268          glFlush();
269 +        rayqleft = RAYQLEN;
270          return(XPending(ourdisplay));
271   }
272  
# Line 273 | Line 278 | double rad;
278   {
279          register int    ci, j;
280          double  apexh, basez;
281 +                                        /* is window mapped? */
282 +        if (!mapped)
283 +                return;
284                                          /* compute apex height (0. to 1.) */
285          if (ip[2] > 1e6)
286                  apexh = 1. - 1./DEPTHFACT;
# Line 314 | Line 322 | mytmflags()                    /* figure out tone mapping flags */
322          for (cp = tail; *cp && *cp != '.'; cp++)
323                  ;
324          if (cp-tail == 3 && !strncmp(tail, "glx", 3))
325 <                return(TM_F_CAMERA);
325 >                return(TM_F_CAMERA|TM_F_NOSTDERR);
326          if (cp-tail == 4 && !strncmp(tail, "glxh", 4))
327 <                return(TM_F_HUMAN);
327 >                return(TM_F_HUMAN|TM_F_NOSTDERR);
328          error(USER, "illegal driver name");
329   }
330  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines