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

Comparing ray/src/rt/initotypes.c (file contents):
Revision 2.17 by greg, Fri Feb 18 00:40:25 2011 UTC vs.
Revision 2.19 by greg, Tue Jul 8 18:25:00 2014 UTC

# Line 16 | Line 16 | static const char RCSid[] = "$Id$";
16   FUN  ofun[NUMOTYPE] = INIT_OTYPE;
17  
18  
19 < extern void
19 > void
20   initotypes(void)                        /* initialize ofun array */
21   {
22          ofun[OBJ_SPHERE].funp =
# Line 48 | Line 48 | initotypes(void)                       /* initialize ofun array */
48          ofun[MAT_PLASTIC2].flags |= T_OPAQUE;
49          ofun[MAT_METAL2].flags |= T_OPAQUE;
50          ofun[MAT_TRANS2].flags |= T_IRR_IGN;
51 +        ofun[MAT_ASHIKHMIN].funp = m_ashikhmin;
52 +        ofun[MAT_ASHIKHMIN].flags |= T_OPAQUE;
53          ofun[MAT_DIELECTRIC].funp =
54          ofun[MAT_INTERFACE].funp = m_dielectric;
55          ofun[MAT_DIELECTRIC].flags |= T_IRR_IGN;
# Line 88 | Line 90 | initotypes(void)                       /* initialize ofun array */
90   }
91  
92  
93 < extern int
93 > int
94   o_default(OBJREC *o, RAY *r)                    /* default action is error */
95   {
96          objerror(o, CONSISTENCY, "unexpected object call");

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines