33 |
|
#define SDnameLn 128 /* maximum BSDF name length */ |
34 |
|
#define SDmaxCh 3 /* maximum # spectral channels */ |
35 |
|
|
36 |
< |
/* Component flags for SDsampBSDF() and SDhemiScatter() */ |
36 |
> |
/* Component flags for SDsampBSDF() and SDdirectHemi() */ |
37 |
|
#define SDsampR 0x1 /* include reflection */ |
38 |
|
#define SDsampT 0x2 /* include transmission */ |
39 |
|
#define SDsampS 0x3 /* include scattering (R+T) */ |
44 |
|
#define SDsampSpS 0x7 /* include non-diffuse scattering */ |
45 |
|
#define SDsampAll 0xF /* include everything */ |
46 |
|
|
47 |
< |
/* Projected solid angle query flags fos SDsizeBSDF() */ |
47 |
> |
/* Projected solid angle query flags for SDsizeBSDF() */ |
48 |
|
#define SDqueryVal 0x0 /* query single value */ |
49 |
|
#define SDqueryMin 0x1 /* query minimum proj. solid angle */ |
50 |
|
#define SDqueryMax 0x2 /* query maximum proj. solid angle */ |
154 |
|
/* Free a spectral distribution function */ |
155 |
|
extern void SDfreeSpectralDF(SDSpectralDF *df); |
156 |
|
|
157 |
< |
/* Initialize an unused BSDF struct (clears to zeroes) */ |
158 |
< |
extern void SDclearBSDF(SDData *sd); |
157 |
> |
/* Initialize an unused BSDF struct and assign name (calls SDclipName) */ |
158 |
> |
extern void SDclearBSDF(SDData *sd, const char *fname); |
159 |
|
|
160 |
|
/* Load a BSDF struct from the given file (keeps name unchanged) */ |
161 |
|
extern SDError SDloadFile(SDData *sd, const char *fname); |