--- ray/src/rt/func.h 1991/11/25 09:49:47 2.1 +++ ray/src/rt/func.h 2003/06/27 06:53:22 2.5 @@ -1,11 +1,14 @@ -/* Copyright (c) 1991 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: func.h,v 2.5 2003/06/27 06:53:22 greg 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 "calcomp.h" @@ -20,4 +23,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_ */ +