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

Comparing ray/src/hd/rhd_ogl.c (file contents):
Revision 3.10 by gwlarson, Wed Dec 23 17:43:42 1998 UTC vs.
Revision 3.11 by gwlarson, Wed Dec 30 17:13:20 1998 UTC

# Line 37 | Line 37 | static char SCCSid[] = "$SunId$ SGI";
37   #include "x11icon.h"
38  
39   #ifndef RAYQLEN
40 < #define RAYQLEN         50000           /* max. rays to queue before flush */
40 > #define RAYQLEN         0               /* max. rays to queue before flush */
41   #endif
42  
43   #ifndef FEQ
# Line 250 | Line 250 | char  *id;
250          XMapWindow(ourdisplay, gwind);
251          dev_input();                    /* sets size and view angles */
252          if (!odInit(DisplayWidth(ourdisplay,ourscreen) *
253 <                        DisplayHeight(ourdisplay,ourscreen) / 4))
253 >                        DisplayHeight(ourdisplay,ourscreen) / 3))
254                  error(SYSTEM, "insufficient memory for value storage");
255          odev.name = id;
256          odev.firstuse = 1;              /* can't recycle samples */
# Line 795 | Line 795 | XButtonPressedEvent    *ebut;
795          XNoOp(ourdisplay);              /* makes sure we're not idle */
796  
797          viewflags &= ~VWSTEADY;         /* flag moving view */
798 <        setglpersp(&odev.v);            /* start us off in perspective */
798 >        setglpersp();                   /* start us off in perspective */
799          while (!XCheckMaskEvent(ourdisplay,
800                          ButtonReleaseMask, levptr(XEvent))) {
801                                          /* get cursor position */
# Line 837 | Line 837 | XButtonPressedEvent    *ebut;
837  
838  
839   static
840 < setglpersp(vp)                  /* set perspective view in GL */
841 < register VIEW   *vp;
840 > setglpersp()                    /* set perspective view in GL */
841   {
842          double  d, xmin, xmax, ymin, ymax;
843          GLfloat vec[4];
# Line 997 | Line 996 | register XKeyPressedEvent  *ekey;
996                  if (inpresflags & DFL(DC_REDRAW))
997                          return;
998                  XRaiseWindow(ourdisplay, gwind);
999 <                XFlush(ourdisplay);
999 >                XFlush(ourdisplay);             /* raise up window */
1000                  sleep(1);                       /* wait for restacking */
1001 <                dev_clear();                    /* clear display and samples */
1003 <                dev_flush();                    /* draw octrees */
1001 >                dev_clear();                    /* clear buffer and samples */
1002                  odRemap(1);                     /* start fresh histogram */
1003 +                dev_flush();                    /* redraw geometry */
1004 +                rayqleft = 0;                   /* hold off update */
1005                  inpresflags |= DFL(DC_REDRAW);  /* resend values from server */
1006                  return;
1007          case 'K':                       /* kill rtrace process(es) */
# Line 1039 | Line 1039 | register XExposeEvent  *eexp;
1039          if (xmin <= 0 && xmax >= odev.hres-1 &&
1040                          ymin <= 0 && ymax >= odev.vres) {
1041                  DCHECK(eexp->count, WARNING, "multiple clear in fixwindow");
1042 <                if (viewflags & VWORTHO)        /* workaround for... */
1043 <                        glDrawBuffer(GL_FRONT); /* ...GLX window mapping bug */
1044 <                glClear(GL_DEPTH_BUFFER_BIT);   /* clear the entire buffer */
1045 < #ifdef STEREO
1046 <                setstereobuf(STEREO_BUFFER_RIGHT);
1047 <                glClear(GL_DEPTH_BUFFER_BIT);
1048 <                setstereobuf(STEREO_BUFFER_LEFT);
1049 < #endif
1050 <                odRedrawAll();
1042 >                wipeclean();                    /* make sure we're go */
1043                  return;
1044          }
1045                                                  /* clear portion of depth */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines