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

# User Rev Content
1 greg 2.3 /* RCSid $Id$ */
2 greg 2.1 /*
3     * Header file for modifiers using function files.
4 greg 2.2 *
5     * Include after ray.h
6     */
7    
8 greg 2.3 #include "copyright.h"
9 greg 2.1
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 greg 2.2 #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