1 |
/* Copyright (c) 1991 Regents of the University of California */ |
2 |
|
3 |
/* SCCSid "$SunId$ LBL" */ |
4 |
|
5 |
/* |
6 |
* Common definitions for mkillum |
7 |
*/ |
8 |
/* illum flags */ |
9 |
#define IL_FLAT 0x1 /* flat surface */ |
10 |
#define IL_LIGHT 0x2 /* light rather than illum */ |
11 |
#define IL_COLDST 0x4 /* colored distribution */ |
12 |
#define IL_COLAVG 0x8 /* compute average color */ |
13 |
#define IL_DATCLB 0x10 /* OK to clobber data file */ |
14 |
|
15 |
struct illum_args { |
16 |
int flags; /* flags from list above */ |
17 |
char matname[MAXSTR]; /* illum material name */ |
18 |
char datafile[MAXSTR]; /* distribution data file name */ |
19 |
int dfnum; /* data file number */ |
20 |
char altmatname[MAXSTR]; /* alternate material name */ |
21 |
int nsamps; /* # of samples in each direction */ |
22 |
int nalt, nazi; /* # of altitude and azimuth angles */ |
23 |
FVECT orient; /* coordinate system orientation */ |
24 |
}; /* illum options */ |
25 |
|
26 |
struct rtproc { |
27 |
int pd[3]; /* rtrace pipe descriptors */ |
28 |
float *buf; /* rtrace i/o buffer */ |
29 |
int bsiz; /* maximum rays for rtrace buffer */ |
30 |
int nrays; /* current length of rtrace buffer */ |
31 |
}; /* rtrace process */ |