Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F91256803
func.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Nov 9, 10:15
Size
1 KB
Mime Type
text/x-c
Expires
Mon, Nov 11, 10:15 (2 d)
Engine
blob
Format
Raw Data
Handle
22204275
Attached To
R10977 RADIANCE Photon Map
func.h
View Options
/* RCSid $Id: func.h,v 2.10 2015/05/20 12:58:31 greg Exp $ */
/*
* Header file for modifiers using function files.
*
* Include after ray.h
*/
#ifndef _RAD_FUNC_H_
#define _RAD_FUNC_H_
#include "calcomp.h"
#ifdef __cplusplus
extern
"C"
{
#endif
#define MAXEXPR 9
/* maximum expressions in modifier */
typedef
struct
{
EPNODE
*
ep
[
MAXEXPR
+
1
];
/* NULL-terminated expression list */
char
*
ctx
;
/* context (from file name) */
XF
*
fxp
,
*
bxp
;
/* forward and backward transforms */
}
MFUNC
;
/* material function */
extern
XF
unitxf
;
/* identity transform */
extern
XF
funcxf
;
/* current transform */
extern
void
initfunc
(
void
);
extern
void
set_eparams
(
char
*
prms
);
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
int
worldfunc
(
char
*
ctx
,
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_ */
Event Timeline
Log In to Comment