--- ray/src/rt/pmapamb.h 2016/05/17 17:39:47 2.5 +++ ray/src/rt/pmapamb.h 2024/09/17 16:36:04 2.6 @@ -1,4 +1,4 @@ -/* RCSid $Id: pmapamb.h,v 2.5 2016/05/17 17:39:47 rschregle Exp $ */ +/* RCSid $Id: pmapamb.h,v 2.6 2024/09/17 16:36:04 greg Exp $ */ /* ================================================================== @@ -10,15 +10,19 @@ supported by the Swiss National Science Foundation (SNSF, #147053) ================================================================== - $Id: pmapamb.h,v 2.5 2016/05/17 17:39:47 rschregle Exp $ + $Id: pmapamb.h,v 2.6 2024/09/17 16:36:04 greg Exp $ */ #ifndef 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) */ @@ -26,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