--- ray/src/common/bsdf.h 2011/02/18 00:40:25 2.4 +++ ray/src/common/bsdf.h 2011/02/19 01:48:59 2.6 @@ -1,4 +1,4 @@ -/* RCSid $Id: bsdf.h,v 2.4 2011/02/18 00:40:25 greg Exp $ */ +/* RCSid $Id: bsdf.h,v 2.6 2011/02/19 01:48:59 greg Exp $ */ /* * bsdf.h * @@ -136,7 +136,7 @@ extern int SDretainSet; /* set to SDretainNone by def * The following routines are less commonly used by applications. */ -#define SDisLoaded(sd) ((sd)->rLambFront.spec.clock != 0) +#define SDisLoaded(sd) ((sd)->rLambFront.spec.flags != 0) /* Report an error to the indicated stream (in English) */ extern SDError SDreportEnglish(SDError ec, FILE *fp); @@ -223,6 +223,12 @@ extern SDError SDinvXform(RREAL iMtx[3][3], RREAL vMt /* Transform and normalize direction (column) vector */ extern SDError SDmapDir(FVECT resVec, RREAL vMtx[3][3], const FVECT inpVec); + +/* System-specific BSDF loading routine (not part of our library) */ +extern SDData *loadBSDF(char *name); + +/* System-specific BSDF error translator (not part of our library) */ +extern char *transSDError(SDError ec); /*################################################################*/ /*######### DEPRECATED DEFINITIONS AWAITING PERMANENT REMOVAL #######*/