ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/gen/mkillum.h
Revision: 2.6
Committed: Fri Nov 21 07:15:30 2003 UTC (20 years, 4 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.5: +5 -3 lines
Log Message:
Fixed prototyping in mkillum and eliminated compile error in lookup.c

File Contents

# Content
1 /* RCSid: $Id: mkillum.h,v 2.5 2003/11/16 10:29:38 schorsch Exp $ */
2 /*
3 * Common definitions for mkillum
4 */
5 #ifndef _RAD_MKILLUM_H_
6 #define _RAD_MKILLUM_H_
7
8 #include "standard.h"
9 #include "object.h"
10 #include "rtprocess.h"
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15 /* illum flags */
16 #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
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 char altmat[MAXSTR]; /* alternate material name */
27 int sampdens; /* point sample density */
28 int nsamps; /* # of samples in each direction */
29 float minbrt; /* minimum average brightness */
30 float col[3]; /* computed average color */
31 }; /* illum options */
32
33 struct rtproc {
34 SUBPROC pd; /* rtrace pipe descriptors */
35 float *buf; /* rtrace i/o buffer */
36 int bsiz; /* maximum rays for rtrace buffer */
37 float **dest; /* destination for each ray result */
38 int nrays; /* current length of rtrace buffer */
39 }; /* rtrace process */
40
41 extern void printobj(char *mod, register OBJREC *obj);
42 extern int average(register struct illum_args *il, float *da, int n);
43 extern void flatout(struct illum_args *il, float *da, int n, int m,
44 FVECT u, FVECT v, FVECT w);
45 extern void illumout(register struct illum_args *il, OBJREC *ob);
46 extern void roundout(struct illum_args *il, float *da, int n, int m);
47
48 #ifdef __cplusplus
49 }
50 #endif
51
52 #define FUN_ARGLIST OBJREC *, struct illum_args *, struct rtproc *, char *
53 #include "otypes.h"
54
55 #endif /* _RAD_MKILLUM_H_ */
56