12 |
|
extern "C" { |
13 |
|
#endif |
14 |
|
|
15 |
+ |
/* Preferred BSDF component: |
16 |
+ |
transmission, reflection front (normal side), reflection back */ |
17 |
+ |
typedef enum {RMPtrans=0, RMPreflF, RMPreflB} RMPref; |
18 |
+ |
|
19 |
|
/* General plane-ordered component matrix */ |
20 |
|
typedef struct { |
21 |
|
int nrows, ncols; |
38 |
|
extern int rmx_newtype(int dtyp1, int dtyp2); |
39 |
|
|
40 |
|
/* Load matrix from supported file type (NULL for stdin, '!' with command) */ |
41 |
< |
extern RMATRIX *rmx_load(const char *inspec); |
41 |
> |
extern RMATRIX *rmx_load(const char *inspec, RMPref rmp); |
42 |
|
|
43 |
|
/* Append header information associated with matrix data */ |
44 |
|
extern int rmx_addinfo(RMATRIX *rm, const char *info); |