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

Comparing ray/src/hd/rhd_glx1.c (file contents):
Revision 3.9 by greg, Thu Apr 28 16:28:20 2016 UTC vs.
Revision 3.10 by greg, Fri Oct 5 19:19:16 2018 UTC

# Line 104 | Line 104 | static void fixwindow(XExposeEvent  *eexp);
104   static void resizewindow(XConfigureEvent  *ersz);
105  
106  
107 < extern void
107 > void
108   dev_open(
109          char  *id
110   )
# Line 204 | Line 204 | dev_open(
204   }
205  
206  
207 < extern void
207 > void
208   dev_close(void)                 /* close our display and free resources */
209   {
210          glXMakeCurrent(ourdisplay, None, NULL);
# Line 222 | Line 222 | dev_close(void)                        /* close our display and free resour
222   }
223  
224  
225 < extern void
225 > void
226   dev_clear(void)                 /* clear our quadtree */
227   {
228          qtCompost(100);
# Line 231 | Line 231 | dev_clear(void)                        /* clear our quadtree */
231   }
232  
233  
234 < extern int
234 > int
235   dev_view(                       /* assign new driver view */
236 <        register VIEW   *nv
236 >        VIEW    *nv
237   )
238   {
239          if (nv->type == VT_PAR ||               /* check view legality */
# Line 284 | Line 284 | dev_view(                      /* assign new driver view */
284   }
285  
286  
287 < extern void
287 > void
288   dev_section(            /* add octree for geometry rendering */
289          char    *gfn,
290          char    *pfn
# Line 294 | Line 294 | dev_section(           /* add octree for geometry rendering */
294   }
295  
296  
297 < extern void
297 > void
298   dev_auxcom(             /* process an auxiliary command */
299          char    *cmd,
300          char    *args
# Line 305 | Line 305 | dev_auxcom(            /* process an auxiliary command */
305   }
306  
307  
308 < extern VIEW *
308 > VIEW *
309   dev_auxview(            /* return nth auxiliary view */
310          int     n,
311          int     hvres[2]
# Line 318 | Line 318 | dev_auxview(           /* return nth auxiliary view */
318   }
319  
320  
321 < extern int
321 > int
322   dev_input(void)                 /* get X11 input */
323   {
324          inpresflags = 0;
# Line 332 | Line 332 | dev_input(void)                        /* get X11 input */
332   }
333  
334  
335 < extern int
335 > int
336   dev_flush(void)                 /* flush output */
337   {
338          qtUpdate();
# Line 342 | Line 342 | dev_flush(void)                        /* flush output */
342   }
343  
344  
345 < extern void
345 > void
346   dev_cone(               /* render a cone in view coordinates */
347          uby8    rgb[3],
348          FVECT   ip,
349          double  rad
350   )
351   {
352 <        register int    ci, j;
352 >        int     ci, j;
353          double  apexh, basez;
354                                          /* is window mapped? */
355          if (!mapped)
# Line 387 | Line 387 | static int
387   mytmflags(void)                 /* figure out tone mapping flags */
388   {
389          extern char     *progname;
390 <        register char   *cp, *tail;
390 >        char    *cp, *tail;
391                                          /* find basic name */
392          for (cp = tail = progname; *cp; cp++)
393                  if (*cp == '/')
# Line 406 | Line 406 | mytmflags(void)                        /* figure out tone mapping flags */
406   static void
407   initcones(void)                 /* initialize cone vertices */
408   {
409 <        register int    i, j;
409 >        int     i, j;
410          double  minrad, d;
411  
412          if (cone[0].nverts)
# Line 433 | Line 433 | initcones(void)                        /* initialize cone vertices */
433   static void
434   freecones(void)                 /* free cone vertices */
435   {
436 <        register int    i;
436 >        int     i;
437  
438          for (i = MAXCONE; i--; )
439                  if (cone[i].nverts) {
# Line 480 | Line 480 | getevent(void)                 /* get next event */
480  
481   static void
482   draw3dline(                     /* draw 3d line in world coordinates */
483 <        register FVECT  wp[2]
483 >        FVECT   wp[2]
484   )
485   {
486          glVertex3d(wp[0][0], wp[0][1], wp[0][2]);
# Line 545 | Line 545 | moveview(      /* move our view */
545          VIEW    nv;
546          FVECT   odir, v1;
547          double  d;
548 <        register int    li;
548 >        int     li;
549                                  /* start with old view */
550          nv = odev.v;
551                                  /* change view direction */
# Line 630 | Line 630 | getmove(                               /* get view change */
630  
631   static void
632   getkey(                         /* get input key */
633 <        register XKeyPressedEvent  *ekey
633 >        XKeyPressedEvent  *ekey
634   )
635   {
636          int  n;
# Line 702 | Line 702 | getkey(                                /* get input key */
702  
703   static void
704   fixwindow(                              /* repair damage to window */
705 <        register XExposeEvent  *eexp
705 >        XExposeEvent  *eexp
706   )
707   {
708          int     xmin, xmax, ymin, ymax;
# Line 728 | Line 728 | fixwindow(                             /* repair damage to window */
728  
729   static void
730   resizewindow(                   /* resize window */
731 <        register XConfigureEvent  *ersz
731 >        XConfigureEvent  *ersz
732   )
733   {
734          glViewport(0, 0, ersz->width, ersz->height);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines