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.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 49 | 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 154 | 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  
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
164                                          /* defined in duphead.c */
165   extern void     headclean(void);
166   extern void     openheader(void);
# Line 242 | Line 200 | 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 259 | 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