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

Comparing ray/src/rt/m_mirror.c (file contents):
Revision 2.7 by gwlarson, Mon Aug 10 18:37:05 1998 UTC vs.
Revision 2.9 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   * Routines for mirror material supporting virtual light sources
6   */
7  
8 + #include "copyright.h"
9 +
10   #include  "ray.h"
11  
12   #include  "otypes.h"
# Line 26 | Line 25 | static char SCCSid[] = "$SunId$ SGI";
25   */
26  
27  
28 < int  mir_proj();
28 > static int  mir_proj(), mirrorproj();
29 >
30   VSMATERIAL  mirror_vs = {mir_proj, 1};
31  
32  
33 + int
34   m_mirror(m, r)                  /* shade mirrored ray */
35   register OBJREC  *m;
36   register RAY  *r;
# Line 97 | Line 98 | register RAY  *r;
98   }
99  
100  
101 + static int
102   mir_proj(pm, o, s, n)           /* compute a mirror's projection */
103   MAT4  pm;
104   register OBJREC  *o;
# Line 125 | Line 127 | int  n;
127   }
128  
129  
130 + static int
131   mirrorproj(m, nv, offs)         /* get mirror projection for surface */
132   register MAT4  m;
133   FVECT  nv;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines