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.32 by greg, Wed Apr 23 02:35:26 2025 UTC vs.
Revision 2.34 by greg, Fri Jun 20 03:43:17 2025 UTC

# Line 36 | Line 36 | static const char      RCSid[] = "$Id$";
36   *  as simple as we can.  Global variables and their defaults
37   *  are defined below, and including "ray.h" declares these
38   *  along with all the routines you are likely to need.  First,
39 < *  assign the global variable progname to your argv[0], then
40 < *  change the rendering parameters as you like.  If you have a set
41 < *  of option arguments you are working from, the getrenderopt(ac,av)
39 > *  assign the global variable progname by calling fixargv0(argv[0]),
40 > *  then change the rendering parameters as you like.  If you have a
41 > *  set of option arguments you are working from, the getrenderopt()
42   *  call should be very useful.  Before tracing any rays, you
43   *  must read in the octree with a call to ray_init(oct).
44   *  Passing NULL for the file name causes ray_init() to read
# Line 103 | Line 103 | static const char      RCSid[] = "$Id$";
103   #include  "font.h"
104   #include  "pmapray.h"
105  
106 char    *progname = "unknown_app";      /* caller sets to argv[0] */
107
106   char    *octname;                       /* octree name we are given */
107  
108   CUBE    thescene;                       /* our scene */
# Line 112 | Line 110 | OBJECT nsceneobjs;                     /* number of objects in our scene
110  
111   int     dimlist[MAXDIM];                /* sampling dimensions */
112   int     ndims = 0;                      /* number of sampling dimensions */
113 < int     samplendx = 0;                  /* index for this sample */
113 > unsigned long   samplendx = 0;          /* index for this sample */
114  
115   void    (*trace)() = NULL;              /* trace call */
116  
# Line 157 | Line 155 | char   *amblist[AMBLLEN+1];            /* ambient include/exclude
155   int     ambincl = -1;                   /* include == 1, exclude == 0 */
156  
157  
158 < static void
158 > void
159   reset_random(void)              /* re-initialize random number generator */
160   {
161          if (rand_samp) {

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines