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.13 by greg, Tue Feb 25 02:47:23 2003 UTC vs.
Revision 2.19 by greg, Fri Jun 27 06:53:22 2003 UTC

# Line 2 | Line 2
2   /*
3   *  ray.h - header file for routines using rays.
4   */
5 + #ifndef _RAD_RAY_H_
6 + #define _RAD_RAY_H_
7 + #ifdef __cplusplus
8 + extern "C" {
9 + #endif
10  
6 #include "copyright.h"
7
11   #include  "standard.h"
12  
13   #include  "octree.h"
# Line 41 | Line 44 | typedef struct ray {
44          OBJECT  *clipset;       /* set of objects currently clipped */
45          OBJECT  *newcset;       /* next clipset, used for transmission */
46          void    (*revf)();      /* evaluation function for this ray */
47 +        void    (*hitf)();      /* custom hit test for this traversal */
48          OBJECT  robj;           /* intersected object number */
49          OBJREC  *ro;            /* intersected object (one with material) */
50          double  rot;            /* distance to object */
# Line 48 | Line 52 | typedef struct ray {
52          FVECT   ron;            /* intersection surface normal */
53          double  rod;            /* -DOT(rdir, ron) */
54          FULLXF  *rox;           /* object transformation */
55 +        RREAL   uv[2];          /* local coordinates */
56          FVECT   pert;           /* surface normal perturbation */
57          COLOR   pcol;           /* pattern color */
58          COLOR   rcol;           /* returned ray value */
# Line 153 | Line 158 | typedef struct {               /* rendering parameter holder */
158   #define rpambmod(p,i)   ( (i)>=AMBLLEN||(p)->amblndx[i]<0 ? \
159                            (char *)NULL : (p)->amblval+(p)->amblndx[i] )
160  
156 #ifdef NOPROTO
157
158 extern void     headclean();
159 extern void     openheader();
160 extern void     dupheader();
161 extern void     pfdetach();
162 extern void     pfclean();
163 extern void     pflock();
164 extern void     pfhold();
165 extern void     io_process();
166 extern int      free_objs();
167 extern void     free_objmem();
168 extern int      load_os();
169 extern void     preload_objs();
170 extern void     ray_init();
171 extern void     ray_trace();
172 extern void     ray_done();
173 extern void     ray_save();
174 extern void     ray_restore();
175 extern void     ray_defaults();
176 extern void     ray_pinit();
177 extern void     ray_psend();
178 extern int      ray_pqueue();
179 extern int      ray_presult();
180 extern void     ray_pdone();
181 extern void     ray_popen();
182 extern void     ray_pclose();
183 extern int      rayorigin();
184 extern void     rayclear();
185 extern void     raytrace();
186 extern void     raycont();
187 extern void     raytrans();
188 extern int      rayshade();
189 extern void     rayparticipate();
190 extern int      raymixture();
191 extern double   raydist();
192 extern double   raynormal();
193 extern void     newrayxf();
194 extern void     flipsurface();
195 extern int      localhit();
196 extern int      getrenderopt();
197 extern void     print_rdefaults();
198 extern void     drawsources();
199 extern void     rtrace();
200 extern void     rview();
201 extern void     rpict();
202
203 #else
161                                          /* defined in duphead.c */
162   extern void     headclean(void);
163   extern void     openheader(void);
# Line 235 | Line 192 | extern void    ray_pclose(int nsub);
192   extern int      rayorigin(RAY *r, RAY *ro, int rt, double rw);
193   extern void     rayclear(RAY *r);
194   extern void     raytrace(RAY *r);
195 + extern void     rayhit(OBJECT *oset, RAY *r);
196   extern void     raycont(RAY *r);
197   extern void     raytrans(RAY *r);
198   extern int      rayshade(RAY *r, int mod);
199   extern void     rayparticipate(RAY *r);
200 + extern void     raytexture(RAY *r, OBJECT mod);
201   extern int      raymixture(RAY *r, OBJECT fore, OBJECT back, double coef);
202   extern double   raydist(RAY *r, int flags);
203   extern double   raynormal(FVECT norm, RAY *r);
# Line 256 | Line 215 | extern void    rtrace(char *fname);
215   extern void     rview(void);
216   extern void     rpict(int seq, char *pout, char *zout, char *prvr);
217  
218 +
219 + #ifdef __cplusplus
220 + }
221   #endif
222 + #endif /* _RAD_RAY_H_ */
223 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines