| 38 |
|
#define cm_free(cm) free(cm) |
| 39 |
|
|
| 40 |
|
/* Load header to obtain data type */ |
| 41 |
< |
int getDTfromHeader(FILE *fp); |
| 41 |
> |
extern int getDTfromHeader(FILE *fp); |
| 42 |
|
|
| 43 |
|
/* Allocate and load a matrix from the given file (or stdin if NULL) */ |
| 44 |
|
extern CMATRIX *cm_load(const char *fname, int nrows, int ncols, int dtype); |
| 55 |
|
/* print out matrix as ASCII text -- no header */ |
| 56 |
|
extern void cm_print(const CMATRIX *cm, FILE *fp); |
| 57 |
|
|
| 58 |
< |
/* Load and convert a matrix BSDF from the given XML file */ |
| 59 |
< |
extern CMATRIX *cm_loadBSDF(char *fname, COLOR cLamb); |
| 58 |
> |
/* Load and convert a matrix BTDF from the given XML file */ |
| 59 |
> |
extern CMATRIX *cm_loadBTDF(char *fname); |
| 60 |
|
|
| 61 |
|
#ifdef __cplusplus |
| 62 |
|
} |