--- ray/src/rt/func.h 1991/11/25 09:49:47 2.1 +++ ray/src/rt/func.h 2003/06/07 00:54:58 2.4 @@ -1,12 +1,18 @@ -/* Copyright (c) 1991 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: func.h,v 2.4 2003/06/07 00:54:58 schorsch Exp $ */ /* * Header file for modifiers using function files. - * Include after standard.h. + * + * Include after ray.h */ +#ifndef _RAD_FUNC_H_ +#define _RAD_FUNC_H_ +#ifdef __cplusplus +extern "C" { +#endif + +#include "copyright.h" + #include "calcomp.h" #define MAXEXPR 9 /* maximum expressions in modifier */ @@ -20,4 +26,15 @@ typedef struct { extern XF unitxf; /* identity transform */ extern XF funcxf; /* current transform */ -extern MFUNC *getfunc(); /* get MFUNC structure for modifier */ + +extern MFUNC *getfunc(OBJREC *m, int ff, unsigned int ef, int dofwd); +extern void freefunc(OBJREC *m); +extern int setfunc(OBJREC *m, RAY *r); +extern void loadfunc(char *fname); + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_FUNC_H_ */ +