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.20 by greg, Sun Aug 11 02:57:49 2013 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  "random.h"
11  
12   #ifdef __cplusplus
13   extern "C" {
14   #endif
16
15                                  /* illum flags */
16   #define  IL_LIGHT       0x1             /* light rather than illum */
17   #define  IL_COLDST      0x2             /* use color distribution */
# Line 29 | Line 27 | struct illum_args {
27          int     sampdens;               /* point sample density */
28          int     nsamps;                 /* # of samples in each direction */
29          float   minbrt;                 /* minimum average brightness */
30 <        float   col[3];                 /* computed average color */
30 >        COLOR   col;                    /* computed average color */
31   };                              /* illum options */
32  
33 < struct rtproc {
34 <        SUBPROC pd;                     /* rtrace pipe descriptors */
35 <        float   *buf;                   /* rtrace i/o buffer */
36 <        int     bsiz;                   /* maximum rays for rtrace buffer */
37 <        float   **dest;                 /* destination for each ray result */
38 <        int     nrays;                  /* current length of rtrace buffer */
41 < };                              /* rtrace process */
33 > extern void printobj(char *mod, OBJREC *obj);
34 > extern int average(struct illum_args *il, COLORV *da, int n);
35 > extern void flatout(struct illum_args *il, COLORV *da, int n, int m,
36 >        FVECT u, FVECT v, FVECT w);
37 > extern void illumout(struct illum_args *il, OBJREC *ob);
38 > extern void roundout(struct illum_args *il, COLORV *da, int n, int m);
39  
40 < extern void printobj(char  *mod, register OBJREC  *obj);
41 < extern int average(register struct illum_args  *il, float  *da, int  n);
42 < extern void flatout(struct illum_args  *il, float  *da, int  n, int  m,
43 <        FVECT  u, FVECT  v, FVECT  w);
47 < extern void illumout(register struct illum_args  *il, OBJREC  *ob);
48 < extern void roundout(struct illum_args  *il, float  *da, int  n, int  m);
40 > extern void newdist(int siz);
41 > extern int process_ray(RAY *r, int rv);
42 > extern void raysamp(int ndx, FVECT org, FVECT dir);
43 > extern void rayclean(void);
44  
45 + extern void flatdir(FVECT  dv, double  alt, double  azi);
46 + extern int flatindex(FVECT dv, int nalt, int nazi);
47 +
48 + extern int my_default(OBJREC *, struct illum_args *, char *);
49 + extern int my_face(OBJREC *, struct illum_args *, char *);
50 + extern int my_sphere(OBJREC *, struct illum_args *, char *);
51 + extern int my_ring(OBJREC *, struct illum_args *, char *);
52 +
53 + extern COLORV * distarr;                /* distribution array */
54 + extern int      distsiz;
55 +
56 + extern char     *progname;
57 +
58   #ifdef __cplusplus
59   }
60   #endif
61 +
62   #endif /* _RAD_MKILLUM_H_ */
63  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines