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

Comparing ray/src/common/rglfile.c (file contents):
Revision 3.3 by gwlarson, Fri Jan 29 15:27:22 1999 UTC vs.
Revision 3.5 by greg, Tue Feb 25 02:47:22 2003 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   * Load Radiance object(s) and create OpenGL display lists
6   */
7  
8 + #include "copyright.h"
9 +
10   #include "radogl.h"
11  
12   #ifndef NLIST2ALLOC
13   #define NLIST2ALLOC     16              /* batch of display lists to get */
14   #endif
15  
17 extern int      o_sphere(), o_face(), o_cone(), o_ring(),
18                o_source(), o_instance();
19
20 extern int      m_normal(), m_glass(), m_aniso(), m_brdf(), m_brdf2(),
21                m_light(), m_prism(), m_mirror();
22
16   FUN  ofun[NUMOTYPE] = INIT_OTYPE;
17  
18   static int      nextlist, nlistleft = 0;
19  
20  
21 < static
21 > static void
22   initotypes()                    /* initialize ofun array */
23   {
24          if (ofun[OBJ_SPHERE].funp == o_sphere)
# Line 81 | Line 74 | newglist()                     /* allocate an OGL list id */
74   }
75  
76  
77 + void
78   rgl_checkerr(where)             /* check for GL or GLU error */
79   char    *where;
80   {
# Line 149 | Line 143 | int    *nl;                    /* returned number of lists (optional) */
143   }
144  
145  
146 + void
147   rgl_load(inpspec)               /* convert scene description into OGL calls */
148   char    *inpspec;
149   {
# Line 191 | Line 186 | char   *inpspec;
186   }
187  
188  
189 + void
190   rgl_object(name, fp)                    /* read the next object */
191   char  *name;
192   FILE  *fp;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines