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.15 by greg, Tue Mar 11 17:08:55 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 49 | Line 52 | typedef struct ray {
52          FVECT   ron;            /* intersection surface normal */
53          double  rod;            /* -DOT(rdir, ron) */
54          FULLXF  *rox;           /* object transformation */
55 <        FLOAT   uv[2];          /* local coordinates */
55 >        RREAL   uv[2];          /* local coordinates */
56          FVECT   pert;           /* surface normal perturbation */
57          COLOR   pcol;           /* pattern color */
58          COLOR   rcol;           /* returned ray value */
# Line 155 | 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  
158 #ifdef NOPROTO
159
160 extern void     headclean();
161 extern void     openheader();
162 extern void     dupheader();
163 extern void     pfdetach();
164 extern void     pfclean();
165 extern void     pflock();
166 extern void     pfhold();
167 extern void     io_process();
168 extern int      free_objs();
169 extern void     free_objmem();
170 extern int      load_os();
171 extern void     preload_objs();
172 extern void     ray_init();
173 extern void     ray_trace();
174 extern void     ray_done();
175 extern void     ray_save();
176 extern void     ray_restore();
177 extern void     ray_defaults();
178 extern void     ray_pinit();
179 extern void     ray_psend();
180 extern int      ray_pqueue();
181 extern int      ray_presult();
182 extern void     ray_pdone();
183 extern void     ray_popen();
184 extern void     ray_pclose();
185 extern int      rayorigin();
186 extern void     rayclear();
187 extern void     raytrace();
188 extern void     rayhit();
189 extern void     raycont();
190 extern void     raytrans();
191 extern int      rayshade();
192 extern void     rayparticipate();
193 extern int      raymixture();
194 extern double   raydist();
195 extern double   raynormal();
196 extern void     newrayxf();
197 extern void     flipsurface();
198 extern int      localhit();
199 extern int      getrenderopt();
200 extern void     print_rdefaults();
201 extern void     drawsources();
202 extern void     rtrace();
203 extern void     rview();
204 extern void     rpict();
205
206 #else
161                                          /* defined in duphead.c */
162   extern void     headclean(void);
163   extern void     openheader(void);
# Line 243 | Line 197 | 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 260 | 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