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

Comparing ray/src/rt/raycalls.c (file contents):
Revision 2.8 by greg, Sat Oct 4 14:39:53 2003 UTC vs.
Revision 2.9 by schorsch, Tue Mar 30 16:13:01 2004 UTC

# Line 115 | Line 115 | int    samplendx = 0;                  /* index for this sample */
115  
116   void    (*trace)() = NULL;              /* trace call */
117  
118 extern void     ambnotify();
118   void    (*addobjnotify[8])() = {ambnotify, NULL};
119  
120   int     do_irrad = 0;                   /* compute irradiance? */
# Line 153 | Line 152 | char   *amblist[AMBLLEN+1];            /* ambient include/exclude
152   int     ambincl = -1;                   /* include == 1, exclude == 0 */
153  
154  
155 < void
156 < ray_init(otnm)                  /* initialize ray-tracing calculation */
157 < char    *otnm;
155 > extern void
156 > ray_init(                       /* initialize ray-tracing calculation */
157 >        char    *otnm
158 > )
159   {
160          if (nobjects > 0)               /* free old scene data */
161                  ray_done(0);
# Line 174 | Line 174 | char   *otnm;
174                                          /* ready to go... */
175   }
176  
177 < void
178 < ray_trace(r)                    /* trace a primary ray */
179 < RAY     *r;
177 > extern void
178 > ray_trace(                      /* trace a primary ray */
179 >        RAY     *r
180 > )
181   {
182          rayorigin(r, NULL, PRIMARY, 1.0);
183          samplendx++;
# Line 184 | Line 185 | RAY    *r;
185   }
186  
187  
188 < void
189 < ray_done(freall)                /* free ray-tracing data */
190 < int     freall;
188 > extern void
189 > ray_done(               /* free ray-tracing data */
190 >        int     freall
191 > )
192   {
193          retainfonts = 1;
194          ambdone();
# Line 204 | Line 206 | int    freall;
206                  initurand(0);
207          }
208          if (nobjects > 0) {
209 <                sprintf(errmsg, "%d objects left after call to ray_done()",
209 >                sprintf(errmsg, "%ld objects left after call to ray_done()",
210                                  nobjects);
211                  error(WARNING, errmsg);
212          }
213   }
214  
215  
216 < void
217 < ray_save(rp)                    /* save current parameter settings */
218 < RAYPARAMS       *rp;
216 > extern void
217 > ray_save(                       /* save current parameter settings */
218 >        RAYPARAMS       *rp
219 > )
220   {
221          int     i, ndx;
222  
# Line 261 | Line 264 | RAYPARAMS      *rp;
264   }
265  
266  
267 < void
268 < ray_restore(rp)                 /* restore parameter settings */
269 < RAYPARAMS       *rp;
267 > extern void
268 > ray_restore(                    /* restore parameter settings */
269 >        RAYPARAMS       *rp
270 > )
271   {
272          register int    i;
273  
# Line 328 | Line 332 | RAYPARAMS      *rp;
332   }
333  
334  
335 < void
336 < ray_defaults(rp)                /* get default parameter values */
337 < RAYPARAMS       *rp;
335 > extern void
336 > ray_defaults(           /* get default parameter values */
337 >        RAYPARAMS       *rp
338 > )
339   {
340          int     i;
341  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines