ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/func.h
Revision: 2.3
Committed: Tue Feb 25 02:47:22 2003 UTC (21 years, 2 months ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: rad3R5
Changes since 2.2: +2 -57 lines
Log Message:
Replaced inline copyright notice with #include "copyright.h"

File Contents

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