ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/mkillum.h
Revision: 2.3
Committed: Thu Jun 26 00:58:09 2003 UTC (20 years, 9 months ago) by schorsch
Content type: text/plain
Branch: MAIN
Changes since 2.2: +16 -4 lines
Log Message:
Abstracted process and path handling for Windows.
Renamed FLOAT to RREAL because of conflict on Windows.
Added conditional compiles for some signal handlers.

File Contents

# User Rev Content
1 schorsch 2.3 /* RCSid: $Id: mkillum.h,v 2.2 2003/02/22 02:07:24 greg Exp $ */
2 greg 1.1 /*
3     * Common definitions for mkillum
4     */
5 schorsch 2.3 #ifndef _RAD_MKILLUM_H_
6     #define _RAD_MKILLUM_H_
7     #ifdef __cplusplus
8     extern "C" {
9     #endif
10    
11 greg 1.2
12     #include "standard.h"
13     #include "object.h"
14     #include "otypes.h"
15 schorsch 2.3 #include "rtprocess.h"
16 greg 1.2
17 greg 1.1 /* illum flags */
18 greg 1.3 #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 greg 1.1
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 greg 1.2 char altmat[MAXSTR]; /* alternate material name */
29 greg 1.3 int sampdens; /* point sample density */
30 greg 1.1 int nsamps; /* # of samples in each direction */
31 greg 1.5 float minbrt; /* minimum average brightness */
32 greg 1.4 float col[3]; /* computed average color */
33 greg 1.1 }; /* illum options */
34    
35     struct rtproc {
36 schorsch 2.3 SUBPROC pd; /* rtrace pipe descriptors */
37 greg 1.1 float *buf; /* rtrace i/o buffer */
38     int bsiz; /* maximum rays for rtrace buffer */
39 greg 1.3 float **dest; /* destination for each ray result */
40 greg 1.1 int nrays; /* current length of rtrace buffer */
41     }; /* rtrace process */
42 schorsch 2.3
43    
44     #ifdef __cplusplus
45     }
46     #endif
47     #endif /* _RAD_MKILLUM_H_ */
48