| 1 |
greg |
1.1 |
/* Copyright (c) 1991 Regents of the University of California */
|
| 2 |
|
|
|
| 3 |
|
|
/* SCCSid "$SunId$ LBL" */
|
| 4 |
|
|
|
| 5 |
|
|
/*
|
| 6 |
|
|
* Common definitions for mkillum
|
| 7 |
|
|
*/
|
| 8 |
greg |
1.2 |
|
| 9 |
|
|
#include "standard.h"
|
| 10 |
|
|
|
| 11 |
|
|
#include "object.h"
|
| 12 |
|
|
|
| 13 |
|
|
#include "otypes.h"
|
| 14 |
|
|
|
| 15 |
greg |
1.1 |
/* illum flags */
|
| 16 |
greg |
1.3 |
#define IL_LIGHT 0x1 /* light rather than illum */
|
| 17 |
|
|
#define IL_COLDST 0x2 /* use color distribution */
|
| 18 |
|
|
#define IL_COLAVG 0x4 /* use average color */
|
| 19 |
|
|
#define IL_DATCLB 0x8 /* OK to clobber data file */
|
| 20 |
greg |
1.1 |
|
| 21 |
|
|
struct illum_args {
|
| 22 |
|
|
int flags; /* flags from list above */
|
| 23 |
|
|
char matname[MAXSTR]; /* illum material name */
|
| 24 |
|
|
char datafile[MAXSTR]; /* distribution data file name */
|
| 25 |
|
|
int dfnum; /* data file number */
|
| 26 |
greg |
1.2 |
char altmat[MAXSTR]; /* alternate material name */
|
| 27 |
greg |
1.3 |
int sampdens; /* point sample density */
|
| 28 |
greg |
1.1 |
int nsamps; /* # of samples in each direction */
|
| 29 |
greg |
1.5 |
float minbrt; /* minimum average brightness */
|
| 30 |
greg |
1.4 |
float col[3]; /* computed average color */
|
| 31 |
greg |
1.1 |
}; /* illum options */
|
| 32 |
|
|
|
| 33 |
|
|
struct rtproc {
|
| 34 |
|
|
int pd[3]; /* rtrace pipe descriptors */
|
| 35 |
|
|
float *buf; /* rtrace i/o buffer */
|
| 36 |
|
|
int bsiz; /* maximum rays for rtrace buffer */
|
| 37 |
greg |
1.3 |
float **dest; /* destination for each ray result */
|
| 38 |
greg |
1.1 |
int nrays; /* current length of rtrace buffer */
|
| 39 |
|
|
}; /* rtrace process */
|