15 |
|
extern "C" { |
16 |
|
#endif |
17 |
|
|
18 |
< |
/* Data types for file loading */ |
19 |
< |
enum {DTfromHeader=0, DTrgbe, DTxyze, DTfloat, DTascii, DTdouble, DTend}; |
18 |
> |
/* Data types for file loading (used to be an enum) */ |
19 |
> |
#define DTfromHeader 0 |
20 |
> |
#define DTrgbe 1 |
21 |
> |
#define DTxyze 2 |
22 |
> |
#define DTspec 3 |
23 |
> |
#define DTfloat 4 |
24 |
> |
#define DTascii 5 |
25 |
> |
#define DTdouble 6 |
26 |
> |
#define DTend 7 |
27 |
|
|
28 |
+ |
/* Defined in cmconst.c */ |
29 |
+ |
extern const char stdin_name[]; |
30 |
|
extern const char *cm_fmt_id[]; |
31 |
|
extern const int cm_elem_size[]; |
32 |
|
|
67 |
|
extern int cm_write(const CMATRIX *cm, int dtype, FILE *fp); |
68 |
|
|
69 |
|
/* Load and convert a matrix BTDF from the given XML file */ |
70 |
< |
extern CMATRIX *cm_loadBTDF(char *fname); |
70 |
> |
extern CMATRIX *cm_loadBTDF(const char *fname); |
71 |
> |
|
72 |
> |
/* Load and convert a matrix BRDF from the given XML file */ |
73 |
> |
extern CMATRIX *cm_loadBRDF(const char *fname, int backside); |
74 |
|
|
75 |
|
#ifdef __cplusplus |
76 |
|
} |