| 1 | greg | 2.9 | /* RCSid: $Id: mkillum.h,v 2.8 2007/09/13 06:31:21 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 | greg | 1.2 |  | 
| 8 | greg | 2.8 | #include  "ray.h" | 
| 9 |  |  | #include  "otypes.h" | 
| 10 | schorsch | 2.4 |  | 
| 11 |  |  | #ifdef __cplusplus | 
| 12 |  |  | extern "C" { | 
| 13 |  |  | #endif | 
| 14 | greg | 1.1 | /* illum flags */ | 
| 15 | greg | 1.3 | #define  IL_LIGHT       0x1             /* light rather than illum */ | 
| 16 |  |  | #define  IL_COLDST      0x2             /* use color distribution */ | 
| 17 |  |  | #define  IL_COLAVG      0x4             /* use average color */ | 
| 18 |  |  | #define  IL_DATCLB      0x8             /* OK to clobber data file */ | 
| 19 | greg | 1.1 |  | 
| 20 |  |  | struct illum_args { | 
| 21 |  |  | int     flags;                  /* flags from list above */ | 
| 22 |  |  | char    matname[MAXSTR];        /* illum material name */ | 
| 23 |  |  | char    datafile[MAXSTR];       /* distribution data file name */ | 
| 24 |  |  | int     dfnum;                  /* data file number */ | 
| 25 | greg | 1.2 | char    altmat[MAXSTR];         /* alternate material name */ | 
| 26 | greg | 1.3 | int     sampdens;               /* point sample density */ | 
| 27 | greg | 1.1 | int     nsamps;                 /* # of samples in each direction */ | 
| 28 | greg | 1.5 | float   minbrt;                 /* minimum average brightness */ | 
| 29 | greg | 2.9 | COLOR   col;                    /* computed average color */ | 
| 30 | greg | 1.1 | };                              /* illum options */ | 
| 31 |  |  |  | 
| 32 | greg | 2.9 | extern void printobj(char *mod, register OBJREC *obj); | 
| 33 |  |  | extern int average(register struct illum_args *il, COLORV *da, int n); | 
| 34 |  |  | extern void flatout(struct illum_args *il, COLORV *da, int n, int m, | 
| 35 |  |  | FVECT u, FVECT v, FVECT w); | 
| 36 |  |  | extern void illumout(register struct illum_args *il, OBJREC *ob); | 
| 37 |  |  | extern void roundout(struct illum_args *il, COLORV *da, int n, int m); | 
| 38 | schorsch | 2.3 |  | 
| 39 | greg | 2.8 | extern int my_default(OBJREC *, struct illum_args *, char *); | 
| 40 |  |  | extern int my_face(OBJREC *, struct illum_args *, char *); | 
| 41 |  |  | extern int my_sphere(OBJREC *, struct illum_args *, char *); | 
| 42 |  |  | extern int my_ring(OBJREC *, struct illum_args *, char *); | 
| 43 | greg | 2.7 |  | 
| 44 | greg | 2.8 | extern char     *progname; | 
| 45 | greg | 2.7 |  | 
| 46 |  |  | #ifdef __cplusplus | 
| 47 |  |  | } | 
| 48 |  |  | #endif | 
| 49 | greg | 2.6 |  | 
| 50 | schorsch | 2.3 | #endif /* _RAD_MKILLUM_H_ */ | 
| 51 |  |  |  |