--- ray/src/rt/pmapamb.h 2015/08/18 18:45:55 2.3 +++ ray/src/rt/pmapamb.h 2024/09/17 16:36:04 2.6 @@ -1,4 +1,5 @@ -/* RCSid $Id: pmapamb.h,v 2.3 2015/08/18 18:45:55 greg Exp $ */ +/* RCSid $Id: pmapamb.h,v 2.6 2024/09/17 16:36:04 greg Exp $ */ + /* ================================================================== Photon map interface to RADIANCE ambient calculation @@ -9,15 +10,19 @@ supported by the Swiss National Science Foundation (SNSF, #147053) ================================================================== - $Id: pmapamb.h,v 2.3 2015/08/18 18:45:55 greg Exp $ + $Id: pmapamb.h,v 2.6 2024/09/17 16:36:04 greg Exp $ */ #ifndef PMAPAMB_H -#define PMAPAMB_H + #define PMAPAMB_H - #include "pmapdata.h" + #include "pmapdata.h" +#ifdef __cplusplus +extern "C" { +#endif + int ambPmap (COLOR aval, RAY *r, int rdepth); /* Factor irradiance from global photon map into ambient coefficient * aval; return 1 on success, else 0 (with aval unmodified) */ @@ -25,4 +30,9 @@ int ambPmapCaustic (COLOR aval, RAY *r, int rdepth); /* Factor irradiance from caustic photon map into ambient coeffiecient * aval; return 1 if successful, else 0 (with aval set to zero) */ + +#ifdef __cplusplus +} +#endif + #endif