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.5 by schorsch, Sun Nov 16 10:29:38 2003 UTC vs.
Revision 2.17 by greg, Fri Jun 12 17:37:37 2009 UTC

# Line 5 | Line 5
5   #ifndef _RAD_MKILLUM_H_
6   #define _RAD_MKILLUM_H_
7  
8 < #include  "standard.h"
9 < #include  "object.h"
8 > #include  "ray.h"
9   #include  "otypes.h"
10 < #include  "rtprocess.h"
10 > #include  "bsdf.h"
11 > #include  "random.h"
12  
13   #ifdef __cplusplus
14   extern "C" {
15   #endif
16
16                                  /* illum flags */
17   #define  IL_LIGHT       0x1             /* light rather than illum */
18   #define  IL_COLDST      0x2             /* use color distribution */
# Line 22 | Line 21 | extern "C" {
21  
22   struct illum_args {
23          int     flags;                  /* flags from list above */
24 +        UpDir   udir;                   /* up direction */
25 +        double  thick;                  /* object thickness */
26          char    matname[MAXSTR];        /* illum material name */
27          char    datafile[MAXSTR];       /* distribution data file name */
28          int     dfnum;                  /* data file number */
29          char    altmat[MAXSTR];         /* alternate material name */
30          int     sampdens;               /* point sample density */
31          int     nsamps;                 /* # of samples in each direction */
32 +        struct BSDF_data
33 +                *sd;                    /* scattering data (if set) */
34          float   minbrt;                 /* minimum average brightness */
35 <        float   col[3];                 /* computed average color */
35 >        COLOR   col;                    /* computed average color */
36   };                              /* illum options */
37  
38 < struct rtproc {
39 <        SUBPROC pd;                     /* rtrace pipe descriptors */
37 <        float   *buf;                   /* rtrace i/o buffer */
38 <        int     bsiz;                   /* maximum rays for rtrace buffer */
39 <        float   **dest;                 /* destination for each ray result */
40 <        int     nrays;                  /* current length of rtrace buffer */
41 < };                              /* rtrace process */
38 > extern void redistribute(struct BSDF_data *b, int nalt, int nazi,
39 >                                FVECT u, FVECT v, FVECT w, MAT4 xm);
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 printobj(char *mod, OBJREC *obj);
42 > extern int average(struct illum_args *il, COLORV *da, int n);
43 > extern void flatout(struct illum_args *il, COLORV *da, int n, int m,
44 >        FVECT u, FVECT v, FVECT w);
45 > extern void illumout(struct illum_args *il, OBJREC *ob);
46 > extern void roundout(struct illum_args *il, COLORV *da, int n, int m);
47  
48 + extern void newdist(int siz);
49 + extern int process_ray(RAY *r, int rv);
50 + extern void raysamp(int ndx, FVECT org, FVECT dir);
51 + extern void rayclean(void);
52 +
53 + extern void flatdir(FVECT  dv, double  alt, double  azi);
54 + extern int flatindex(FVECT dv, int nalt, int nazi);
55 +
56 + extern int my_default(OBJREC *, struct illum_args *, char *);
57 + extern int my_face(OBJREC *, struct illum_args *, char *);
58 + extern int my_sphere(OBJREC *, struct illum_args *, char *);
59 + extern int my_ring(OBJREC *, struct illum_args *, char *);
60 +
61 + extern COLORV * distarr;                /* distribution array */
62 + extern int      distsiz;
63 + extern COLORV * direct_discount;        /* amount to take off direct */
64 +
65 + extern char     *progname;
66 +
67   #ifdef __cplusplus
68   }
69   #endif
70 +
71   #endif /* _RAD_MKILLUM_H_ */
72  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines