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.17 by schorsch, Sat Jun 7 00:54:58 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  
11 +
12   #include "copyright.h"
13  
14   #include  "standard.h"
# Line 41 | Line 47 | typedef struct ray {
47          OBJECT  *clipset;       /* set of objects currently clipped */
48          OBJECT  *newcset;       /* next clipset, used for transmission */
49          void    (*revf)();      /* evaluation function for this ray */
50 +        void    (*hitf)();      /* custom hit test for this traversal */
51          OBJECT  robj;           /* intersected object number */
52          OBJREC  *ro;            /* intersected object (one with material) */
53          double  rot;            /* distance to object */
# Line 48 | Line 55 | typedef struct ray {
55          FVECT   ron;            /* intersection surface normal */
56          double  rod;            /* -DOT(rdir, ron) */
57          FULLXF  *rox;           /* object transformation */
58 +        FLOAT   uv[2];          /* local coordinates */
59          FVECT   pert;           /* surface normal perturbation */
60          COLOR   pcol;           /* pattern color */
61          COLOR   rcol;           /* returned ray value */
# Line 153 | Line 161 | typedef struct {               /* rendering parameter holder */
161   #define rpambmod(p,i)   ( (i)>=AMBLLEN||(p)->amblndx[i]<0 ? \
162                            (char *)NULL : (p)->amblval+(p)->amblndx[i] )
163  
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
164                                          /* defined in duphead.c */
165   extern void     headclean(void);
166   extern void     openheader(void);
# Line 235 | Line 195 | extern void    ray_pclose(int nsub);
195   extern int      rayorigin(RAY *r, RAY *ro, int rt, double rw);
196   extern void     rayclear(RAY *r);
197   extern void     raytrace(RAY *r);
198 + extern void     rayhit(OBJECT *oset, RAY *r);
199   extern void     raycont(RAY *r);
200   extern void     raytrans(RAY *r);
201   extern int      rayshade(RAY *r, int mod);
202   extern void     rayparticipate(RAY *r);
203 + extern void     raytexture(RAY *r, OBJECT mod);
204   extern int      raymixture(RAY *r, OBJECT fore, OBJECT back, double coef);
205   extern double   raydist(RAY *r, int flags);
206   extern double   raynormal(FVECT norm, RAY *r);
# Line 256 | Line 218 | extern void    rtrace(char *fname);
218   extern void     rview(void);
219   extern void     rpict(int seq, char *pout, char *zout, char *prvr);
220  
221 +
222 + #ifdef __cplusplus
223 + }
224   #endif
225 + #endif /* _RAD_RAY_H_ */
226 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines