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 1.1 by greg, Tue Jul 23 13:35:33 1991 UTC vs.
Revision 2.5 by schorsch, Sun Nov 16 10:29:38 2003 UTC

# Line 1 | Line 1
1 < /* Copyright (c) 1991 Regents of the University of California */
2 <
3 < /* SCCSid "$SunId$ LBL" */
4 <
1 > /* RCSid: $Id$ */
2   /*
3   * Common definitions for mkillum
4   */
5 + #ifndef _RAD_MKILLUM_H_
6 + #define _RAD_MKILLUM_H_
7 +
8 + #include  "standard.h"
9 + #include  "object.h"
10 + #include  "otypes.h"
11 + #include  "rtprocess.h"
12 +
13 + #ifdef __cplusplus
14 + extern "C" {
15 + #endif
16 +
17                                  /* illum flags */
18 < #define  IL_FLAT        0x1             /* flat surface */
19 < #define  IL_LIGHT       0x2             /* light rather than illum */
20 < #define  IL_COLDST      0x4             /* colored distribution */
21 < #define  IL_COLAVG      0x8             /* compute average color */
13 < #define  IL_DATCLB      0x10            /* OK to clobber data file */
18 > #define  IL_LIGHT       0x1             /* light rather than illum */
19 > #define  IL_COLDST      0x2             /* use color distribution */
20 > #define  IL_COLAVG      0x4             /* use average color */
21 > #define  IL_DATCLB      0x8             /* OK to clobber data file */
22  
23   struct illum_args {
24          int     flags;                  /* flags from list above */
25          char    matname[MAXSTR];        /* illum material name */
26          char    datafile[MAXSTR];       /* distribution data file name */
27          int     dfnum;                  /* data file number */
28 <        char    altmatname[MAXSTR];     /* alternate material name */
28 >        char    altmat[MAXSTR];         /* alternate material name */
29 >        int     sampdens;               /* point sample density */
30          int     nsamps;                 /* # of samples in each direction */
31 <        int     nalt, nazi;             /* # of altitude and azimuth angles */
32 <        FVECT   orient;                 /* coordinate system orientation */
31 >        float   minbrt;                 /* minimum average brightness */
32 >        float   col[3];                 /* computed average color */
33   };                              /* illum options */
34  
35   struct rtproc {
36 <        int     pd[3];                  /* rtrace pipe descriptors */
36 >        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 */
42 +
43 + extern void printobj(char  *mod, register OBJREC  *obj);
44 + extern int average(register struct illum_args  *il, float  *da, int  n);
45 + extern void flatout(struct illum_args  *il, float  *da, int  n, int  m,
46 +        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);
49 +
50 + #ifdef __cplusplus
51 + }
52 + #endif
53 + #endif /* _RAD_MKILLUM_H_ */
54 +

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines