ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/func.h
Revision: 2.5
Committed: Fri Jun 27 06:53:22 2003 UTC (20 years, 10 months ago) by greg
Content type: text/plain
Branch: MAIN
Changes since 2.4: +1 -4 lines
Log Message:
Broke standard.h into rtio.h, rterror.h, rtmath.h, and rtmisc.h

File Contents

# Content
1 /* RCSid $Id: func.h,v 2.4 2003/06/07 00:54:58 schorsch Exp $ */
2 /*
3 * Header file for modifiers using function files.
4 *
5 * Include after ray.h
6 */
7 #ifndef _RAD_FUNC_H_
8 #define _RAD_FUNC_H_
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12
13 #include "calcomp.h"
14
15 #define MAXEXPR 9 /* maximum expressions in modifier */
16
17 typedef struct {
18 EPNODE *ep[MAXEXPR+1]; /* NULL-terminated expression list */
19 char *ctx; /* context (from file name) */
20 XF *f, *b; /* forward and backward transforms */
21 } MFUNC; /* material function */
22
23 extern XF unitxf; /* identity transform */
24 extern XF funcxf; /* current transform */
25
26
27 extern MFUNC *getfunc(OBJREC *m, int ff, unsigned int ef, int dofwd);
28 extern void freefunc(OBJREC *m);
29 extern int setfunc(OBJREC *m, RAY *r);
30 extern void loadfunc(char *fname);
31
32
33 #ifdef __cplusplus
34 }
35 #endif
36 #endif /* _RAD_FUNC_H_ */
37