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.14 by greg, Tue Mar 4 19:02:22 2003 UTC vs.
Revision 2.20 by schorsch, Mon Jul 14 22:24:00 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  
6 #include "copyright.h"
7
8   #include  "standard.h"
9
9   #include  "octree.h"
11
10   #include  "object.h"
13
11   #include  "color.h"
12  
13 + #ifdef __cplusplus
14 + extern "C" {
15 + #endif
16 +
17   #define  MAXDIM         32      /* maximum number of dimensions */
18  
19                                  /* ray type flags */
# Line 49 | Line 50 | typedef struct ray {
50          FVECT   ron;            /* intersection surface normal */
51          double  rod;            /* -DOT(rdir, ron) */
52          FULLXF  *rox;           /* object transformation */
53 +        RREAL   uv[2];          /* local coordinates */
54          FVECT   pert;           /* surface normal perturbation */
55          COLOR   pcol;           /* pattern color */
56          COLOR   rcol;           /* returned ray value */
# Line 154 | Line 156 | typedef struct {               /* rendering parameter holder */
156   #define rpambmod(p,i)   ( (i)>=AMBLLEN||(p)->amblndx[i]<0 ? \
157                            (char *)NULL : (p)->amblval+(p)->amblndx[i] )
158  
157 #ifdef NOPROTO
158
159 extern void     headclean();
160 extern void     openheader();
161 extern void     dupheader();
162 extern void     pfdetach();
163 extern void     pfclean();
164 extern void     pflock();
165 extern void     pfhold();
166 extern void     io_process();
167 extern int      free_objs();
168 extern void     free_objmem();
169 extern int      load_os();
170 extern void     preload_objs();
171 extern void     ray_init();
172 extern void     ray_trace();
173 extern void     ray_done();
174 extern void     ray_save();
175 extern void     ray_restore();
176 extern void     ray_defaults();
177 extern void     ray_pinit();
178 extern void     ray_psend();
179 extern int      ray_pqueue();
180 extern int      ray_presult();
181 extern void     ray_pdone();
182 extern void     ray_popen();
183 extern void     ray_pclose();
184 extern int      rayorigin();
185 extern void     rayclear();
186 extern void     raytrace();
187 extern void     rayhit();
188 extern void     raycont();
189 extern void     raytrans();
190 extern int      rayshade();
191 extern void     rayparticipate();
192 extern int      raymixture();
193 extern double   raydist();
194 extern double   raynormal();
195 extern void     newrayxf();
196 extern void     flipsurface();
197 extern int      localhit();
198 extern int      getrenderopt();
199 extern void     print_rdefaults();
200 extern void     drawsources();
201 extern void     rtrace();
202 extern void     rview();
203 extern void     rpict();
204
205 #else
159                                          /* defined in duphead.c */
160   extern void     headclean(void);
161   extern void     openheader(void);
# Line 242 | Line 195 | extern void    raycont(RAY *r);
195   extern void     raytrans(RAY *r);
196   extern int      rayshade(RAY *r, int mod);
197   extern void     rayparticipate(RAY *r);
198 + extern void     raytexture(RAY *r, OBJECT mod);
199   extern int      raymixture(RAY *r, OBJECT fore, OBJECT back, double coef);
200   extern double   raydist(RAY *r, int flags);
201   extern double   raynormal(FVECT norm, RAY *r);
# Line 259 | Line 213 | extern void    rtrace(char *fname);
213   extern void     rview(void);
214   extern void     rpict(int seq, char *pout, char *zout, char *prvr);
215  
216 +
217 + #ifdef __cplusplus
218 + }
219   #endif
220 + #endif /* _RAD_RAY_H_ */
221 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines