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

Comparing ray/src/hd/rhdisp3.c (file contents):
Revision 3.11 by gwlarson, Thu Nov 5 13:58:37 1998 UTC vs.
Revision 3.15 by schorsch, Thu Jan 1 11:21:55 2004 UTC

# Line 1 | Line 1
1 /* Copyright (c) 1998 Silicon Graphics, Inc. */
2
1   #ifndef lint
2 < static char SCCSid[] = "$SunId$ SGI";
2 > static const char       RCSid[] = "$Id$";
3   #endif
6
4   /*
5   * Holodeck beam support for display process
6   */
# Line 56 | Line 53 | int    bi;
53                  (ip[1][0]-ip[3][0])*(ip[2][1]-ip[3][1]);
54          af *= af >= 0 ? 0.5 : -0.5;
55   getback:
56 <        copystruct(&vrev, vp);          /* compute reverse view */
56 >        vrev = *vp;             /* compute reverse view */
57          for (i = 0; i < 3; i++) {
58                  vrev.vdir[i] = -vp->vdir[i];
59                  vrev.vup[i] = -vp->vup[i];
# Line 242 | Line 239 | addcell(gcp, cl)               /* add a cell to a list */
239   GCOORD  *gcp;
240   register struct cellist *cl;
241   {
242 <        copystruct(cl->cl+cl->n, gcp);
242 >        *(cl->cl+cl->n) = *gcp;
243          cl->n++;
244          return(1);
245   }
# Line 286 | Line 283 | VIEW   *vp;
283          cl.n = 0;                       /* add cells within pyramid */
284          visit_cells(org, dir, hp, addcell, (char *)&cl);
285          if (!cl.n) {
286 <                free((char *)cl.cl);
286 >                free((void *)cl.cl);
287                  return(NULL);
288          }
289          *np = cl.n * orient;
# Line 295 | Line 292 | VIEW   *vp;
292           * sorted automatically by visit_cells(), so we don't need this.
293           */
294                                          /* optimize memory use */
295 <        cl.cl = (GCOORD *)realloc((char *)cl.cl, cl.n*sizeof(GCOORD));
295 >        cl.cl = (GCOORD *)realloc((void *)cl.cl, cl.n*sizeof(GCOORD));
296          if (cl.cl == NULL)
297                  goto memerr;
298                                          /* sort the list */
# Line 307 | Line 304 | memerr:
304   }
305  
306  
307 < gridlines(f)                    /* run through holodeck section grid lines */
308 < int     (*f)();
307 > extern void
308 > gridlines(                      /* run through holodeck section grid lines */
309 >        void    (*f)(FVECT wp[2])
310 > )
311   {
312          register int    hd, w, i;
313          int     g0, g1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines