--- ray/src/rt/func.h 1991/11/25 09:49:47 2.1 +++ ray/src/rt/func.h 2004/03/30 16:13:01 2.7 @@ -1,14 +1,20 @@ -/* Copyright (c) 1991 Regents of the University of California */ - -/* SCCSid "$SunId$ LBL" */ - +/* RCSid $Id: func.h,v 2.7 2004/03/30 16:13:01 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_ +#include "ray.h" +#include "object.h" #include "calcomp.h" +#ifdef __cplusplus +extern "C" { +#endif + #define MAXEXPR 9 /* maximum expressions in modifier */ typedef struct { @@ -20,4 +26,22 @@ 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); + + /* defined in noise3.c */ +extern void setnoisefuncs(void); + + /* defined in fprism.c */ +extern void setprismfuncs(void); + + + +#ifdef __cplusplus +} +#endif +#endif /* _RAD_FUNC_H_ */ +