ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/mkillum.h
(Generate patch)

Comparing ray/src/gen/mkillum.h (file contents):
Revision 2.6 by greg, Fri Nov 21 07:15:30 2003 UTC vs.
Revision 2.19 by greg, Sat Oct 13 20:15:43 2012 UTC

# Line 5 | Line 5
5   #ifndef _RAD_MKILLUM_H_
6   #define _RAD_MKILLUM_H_
7  
8 < #include  "standard.h"
9 < #include  "object.h"
10 < #include  "rtprocess.h"
8 > #include  "ray.h"
9 > #include  "otypes.h"
10 > #include  "random.h"
11  
12   #ifdef __cplusplus
13   extern "C" {
# Line 20 | Line 20 | extern "C" {
20  
21   struct illum_args {
22          int     flags;                  /* flags from list above */
23 +        double  thick;                  /* object thickness */
24          char    matname[MAXSTR];        /* illum material name */
25          char    datafile[MAXSTR];       /* distribution data file name */
26          int     dfnum;                  /* data file number */
# Line 27 | Line 28 | struct illum_args {
28          int     sampdens;               /* point sample density */
29          int     nsamps;                 /* # of samples in each direction */
30          float   minbrt;                 /* minimum average brightness */
31 <        float   col[3];                 /* computed average color */
31 >        COLOR   col;                    /* computed average color */
32   };                              /* illum options */
33  
34 < struct rtproc {
35 <        SUBPROC pd;                     /* rtrace pipe descriptors */
36 <        float   *buf;                   /* rtrace i/o buffer */
37 <        int     bsiz;                   /* maximum rays for rtrace buffer */
38 <        float   **dest;                 /* destination for each ray result */
39 <        int     nrays;                  /* current length of rtrace buffer */
39 < };                              /* rtrace process */
34 > extern void printobj(char *mod, OBJREC *obj);
35 > extern int average(struct illum_args *il, COLORV *da, int n);
36 > extern void flatout(struct illum_args *il, COLORV *da, int n, int m,
37 >        FVECT u, FVECT v, FVECT w);
38 > extern void illumout(struct illum_args *il, OBJREC *ob);
39 > extern void roundout(struct illum_args *il, COLORV *da, int n, int m);
40  
41 < extern void printobj(char  *mod, register OBJREC  *obj);
42 < extern int average(register struct illum_args  *il, float  *da, int  n);
43 < extern void flatout(struct illum_args  *il, float  *da, int  n, int  m,
44 <        FVECT  u, FVECT  v, FVECT  w);
45 < extern void illumout(register struct illum_args  *il, OBJREC  *ob);
46 < extern void roundout(struct illum_args  *il, float  *da, int  n, int  m);
41 > extern void newdist(int siz);
42 > extern int process_ray(RAY *r, int rv);
43 > extern void raysamp(int ndx, FVECT org, FVECT dir);
44 > extern void rayclean(void);
45  
46 + extern void flatdir(FVECT  dv, double  alt, double  azi);
47 + extern int flatindex(FVECT dv, int nalt, int nazi);
48 +
49 + extern int my_default(OBJREC *, struct illum_args *, char *);
50 + extern int my_face(OBJREC *, struct illum_args *, char *);
51 + extern int my_sphere(OBJREC *, struct illum_args *, char *);
52 + extern int my_ring(OBJREC *, struct illum_args *, char *);
53 +
54 + extern COLORV * distarr;                /* distribution array */
55 + extern int      distsiz;
56 +
57 + extern char     *progname;
58 +
59   #ifdef __cplusplus
60   }
61   #endif
51
52 #define FUN_ARGLIST     OBJREC *, struct illum_args *, struct rtproc *, char *
53 #include  "otypes.h"
62  
63   #endif /* _RAD_MKILLUM_H_ */
64  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines