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.17 by greg, Wed Jan 24 04:39:52 2018 UTC vs.
Revision 3.18 by greg, Fri Oct 5 19:19:16 2018 UTC

# Line 16 | Line 16 | struct cellist {
16  
17   int
18   npixels(vp, hr, vr, hp, bi)     /* compute appropriate nrays to evaluate */
19 < register VIEW   *vp;
19 > VIEW    *vp;
20   int     hr, vr;
21   HOLO    *hp;
22   int     bi;
# Line 25 | Line 25 | int    bi;
25          GCOORD  gc[2];
26          FVECT   cp[4], ip[4], pf, pb;
27          double  af, ab, sf2, sb2, dfb2, df2, db2, penalty;
28 <        register int    i;
28 >        int     i;
29                                          /* special case */
30          if (hr <= 0 | vr <= 0)
31                  return(0);
# Line 101 | Line 101 | finish:                /* compute penalty based on dist. sightline -
101   int
102   visit_cells(orig, pyrd, hp, vf, dp)     /* visit cells within a pyramid */
103   FVECT   orig, pyrd[4];          /* pyramid ray directions in clockwise order */
104 < register HOLO   *hp;
104 > HOLO    *hp;
105   int     (*vf)();
106   char    *dp;
107   {
# Line 110 | Line 110 | char   *dp;
110          FVECT   gp, pn[4], lo, ld;
111          double  po[4], lbeg, lend, d, t;
112          GCOORD  gc, gc2[2];
113 <        register int    i;
113 >        int     i;
114                                          /* figure out whose side we're on */
115          hdgrid(gp, hp, orig);
116          for (i = 0; i < 3; i++) {
# Line 179 | Line 179 | char   *dp;
179  
180  
181   sect_behind(hp, vp)             /* check if section is "behind" viewpoint */
182 < register HOLO   *hp;
183 < register VIEW   *vp;
182 > HOLO    *hp;
183 > VIEW    *vp;
184   {
185          FVECT   hcent;
186                                          /* compute holodeck section center */
# Line 197 | Line 197 | FVECT  org, dir[4];
197   HOLO    *hp;
198   VIEW    *vp;
199   {
200 <        register int    i;
200 >        int     i;
201                                          /* check view type */
202          if (vp->type == VT_PAR)
203                  return(0);
# Line 234 | Line 234 | VIEW   *vp;
234   int
235   addcell(gcp, cl)                /* add a cell to a list */
236   GCOORD  *gcp;
237 < register struct cellist *cl;
237 > struct cellist  *cl;
238   {
239          *(cl->cl+cl->n) = *gcp;
240          cl->n++;
# Line 244 | Line 244 | register struct cellist        *cl;
244  
245   int
246   cellcmp(gcp1, gcp2)             /* visit_cells() cell ordering */
247 < register GCOORD *gcp1, *gcp2;
247 > GCOORD  *gcp1, *gcp2;
248   {
249 <        register int    c;
249 >        int     c;
250  
251          if ((c = gcp1->w - gcp2->w))
252                  return(c);
# Line 259 | Line 259 | register GCOORD        *gcp1, *gcp2;
259   GCOORD *
260   getviewcells(np, hp, vp)        /* get ordered cell list for section view */
261   int     *np;            /* returned number of cells (negative if reversed) */
262 < register HOLO   *hp;
262 > HOLO    *hp;
263   VIEW    *vp;
264   {
265          FVECT   org, dir[4];
# Line 301 | Line 301 | memerr:
301   }
302  
303  
304 < extern void
304 > void
305   gridlines(                      /* run through holodeck section grid lines */
306          void    (*f)(FVECT wp[2])
307   )
308   {
309 <        register int    hd, w, i;
309 >        int     hd, w, i;
310          int     g0, g1;
311          FVECT   wp[2], mov;
312          double  d;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines