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.21 by greg, Mon May 19 16:32:18 2003 UTC vs.
Revision 3.22 by schorsch, Mon Jul 21 22:30:18 2003 UTC

# Line 243 | Line 243 | char  *id;
243          setstereobuf(STEREO_BUFFER_LEFT);
244   #endif
245          checkglerr("setting rendering parameters");
246 <        copystruct(&odev.v, &stdview);
246 >        odev.v = stdview;
247          odev.v.type = VT_PER;
248          viewflags = VWSTEADY;           /* view starts static */
249                                          /* map the window */
# Line 330 | Line 330 | register VIEW  *nv;
330                          XResizeWindow(ourdisplay, gwind, odev.hres, odev.vres);
331                          dev_input();    /* get resize event */
332                  }
333 <                copystruct(&odev.v, nv);        /* setview() already called */
333 >                odev.v = *nv;   /* setview() already called */
334                  viewflags |= VWCHANGE;
335          }
336   #ifdef STEREO
337 <        copystruct(&vwright, nv);
337 >        vwright = *nv;
338          d = eyesepdist / sqrt(nv->hn2);
339          VSUM(vwright.vp, nv->vp, nv->hvec, d);
340          /* setview(&vwright);   -- Unnecessary */
# Line 719 | Line 719 | int    dx, dy, mov, orb;
719          double  d, d1;
720          register int    li;
721                                  /* start with old view */
722 <        copystruct(&nv, &odev.v);
722 >        nv = odev.v;
723                                  /* orient our motion */
724          if (viewray(v1, odir, &odev.v,
725                          (dx+.5)/odev.hres, (dy+.5)/odev.vres) < -FTINY)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines