--- ray/src/gen/mkillum.h 2003/11/16 10:29:38 2.5 +++ ray/src/gen/mkillum.h 2007/09/13 06:31:21 2.8 @@ -1,19 +1,16 @@ -/* RCSid: $Id: mkillum.h,v 2.5 2003/11/16 10:29:38 schorsch Exp $ */ +/* RCSid: $Id: mkillum.h,v 2.8 2007/09/13 06:31:21 greg Exp $ */ /* * Common definitions for mkillum */ #ifndef _RAD_MKILLUM_H_ #define _RAD_MKILLUM_H_ -#include "standard.h" -#include "object.h" +#include "ray.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 */ @@ -32,14 +29,6 @@ struct illum_args { float col[3]; /* computed average color */ }; /* illum options */ -struct rtproc { - 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 */ - extern void printobj(char *mod, register OBJREC *obj); extern int average(register struct illum_args *il, float *da, int n); extern void flatout(struct illum_args *il, float *da, int n, int m, @@ -47,8 +36,16 @@ extern void flatout(struct illum_args *il, float *da extern void illumout(register struct illum_args *il, OBJREC *ob); extern void roundout(struct illum_args *il, float *da, int n, int m); +extern int my_default(OBJREC *, struct illum_args *, char *); +extern int my_face(OBJREC *, struct illum_args *, char *); +extern int my_sphere(OBJREC *, struct illum_args *, char *); +extern int my_ring(OBJREC *, struct illum_args *, char *); + +extern char *progname; + #ifdef __cplusplus } #endif + #endif /* _RAD_MKILLUM_H_ */