--- ray/src/gen/mkillum.h 1991/07/25 10:59:03 1.4 +++ ray/src/gen/mkillum.h 2003/07/14 22:23:59 2.4 @@ -1,17 +1,19 @@ -/* Copyright (c) 1991 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid: $Id: mkillum.h,v 2.4 2003/07/14 22:23:59 schorsch Exp $ */ /* * Common definitions for mkillum */ +#ifndef _RAD_MKILLUM_H_ +#define _RAD_MKILLUM_H_ #include "standard.h" - #include "object.h" - #include "otypes.h" +#include "rtprocess.h" +#ifdef __cplusplus +extern "C" { +#endif + /* illum flags */ #define IL_LIGHT 0x1 /* light rather than illum */ #define IL_COLDST 0x2 /* use color distribution */ @@ -26,13 +28,21 @@ struct illum_args { char altmat[MAXSTR]; /* alternate material name */ int sampdens; /* point sample density */ int nsamps; /* # of samples in each direction */ + float minbrt; /* minimum average brightness */ float col[3]; /* computed average color */ }; /* illum options */ struct rtproc { - int pd[3]; /* rtrace pipe descriptors */ + SUBPROC pd; /* rtrace pipe descriptors */ float *buf; /* rtrace i/o buffer */ int bsiz; /* maximum rays for rtrace buffer */ float **dest; /* destination for each ray result */ int nrays; /* current length of rtrace buffer */ }; /* rtrace process */ + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_MKILLUM_H_ */ +