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

Comparing ray/src/rt/ray.h (file contents):
Revision 2.21 by greg, Thu Aug 28 03:22:16 2003 UTC vs.
Revision 2.24 by greg, Fri Apr 15 04:44:51 2005 UTC

# Line 41 | Line 41 | typedef struct ray {
41          int     rsrc;           /* source we're aiming for */
42          OBJECT  *clipset;       /* set of objects currently clipped */
43          OBJECT  *newcset;       /* next clipset, used for transmission */
44        void    (*revf)(struct ray *);  /* evaluation function for this ray */
44          void    (*hitf)(OBJECT *, struct ray *);        /* custom hit test */
45          OBJECT  robj;           /* intersected object number */
46          OBJREC  *ro;            /* intersected object (one with material) */
# Line 53 | Line 52 | typedef struct ray {
52          RREAL   uv[2];          /* local coordinates */
53          FVECT   pert;           /* surface normal perturbation */
54          COLOR   pcol;           /* pattern color */
55 <        COLOR   rcol;           /* returned ray value */
55 >        COLOR   rcol;           /* returned radiance value */
56          double  rt;             /* returned effective ray length */
57          COLOR   cext;           /* medium extinction coefficient */
58          COLOR   albedo;         /* medium scattering albedo */
# Line 61 | Line 60 | typedef struct ray {
60          int     *slights;       /* list of lights to test for scattering */
61   }  RAY;
62  
64 #define  rayvalue(r)    (*(r)->revf)(r)
65
63   extern char  VersionID[];       /* Radiance version ID string */
64  
65   extern CUBE     thescene;       /* our scene */
# Line 119 | Line 116 | extern int     ambincl;        /* include == 1, exclude == 0 */
116   extern int      ray_pnprocs;    /* number of child processes */
117   extern int      ray_pnidle;     /* number of idle processes */
118  
119 < #define AMBLLEN         128     /* max. ambient list length */
120 < #define AMBWORD         8       /* average word length */
119 > #ifndef AMBLLEN
120 > #define AMBLLEN         512     /* max. ambient list length */
121 > #endif
122 > #define AMBWORD         12      /* average word length */
123  
124   typedef struct {                /* rendering parameter holder */
125          int     do_irrad;
# Line 160 | Line 159 | typedef struct {               /* rendering parameter holder */
159   extern void     headclean(void);
160   extern void     openheader(void);
161   extern void     dupheader(void);
162 +                                        /* defined in persist.c */
163 + extern void persistfile(char *pfn);
164   extern void     pfdetach(void);
165   extern void     pfclean(void);
166   extern void     pflock(int lf);
# Line 189 | Line 190 | extern void    ray_pclose(int nsub);
190                                          /* defined in raytrace.c */
191   extern int      rayorigin(RAY *r, RAY *ro, int rt, double rw);
192   extern void     rayclear(RAY *r);
193 < extern void     raytrace(RAY *r);
193 > extern void     rayvalue(RAY *r);
194   extern void     rayhit(OBJECT *oset, RAY *r);
195   extern void     raycont(RAY *r);
196   extern void     raytrans(RAY *r);
# Line 208 | Line 209 | extern void    print_rdefaults(void);
209                                          /* defined in srcdraw.c */
210   extern void     drawsources(COLOR *pic[], float *zbf[],
211                          int x0, int xsiz, int y0, int ysiz);
212 + extern void init_drawsources(int rad);
213 +                                        /* defined in rt/initotypes.c */
214 + extern void initotypes(void);
215                                          /* module main procedures */
216   extern void     rtrace(char *fname);
217 + extern char * formstr(int  f);
218   extern void     rview(void);
219   extern void     rpict(int seq, char *pout, char *zout, char *prvr);
220  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines