--- ray/src/rt/pmapamb.h 2015/02/24 19:39:26 2.1 +++ ray/src/rt/pmapamb.h 2024/09/17 16:36:04 2.6 @@ -1,21 +1,28 @@ +/* RCSid $Id: pmapamb.h,v 2.6 2024/09/17 16:36:04 greg Exp $ */ + /* ================================================================== Photon map interface to RADIANCE ambient calculation Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) (c) Fraunhofer Institute for Solar Energy Systems, - Lucerne University of Applied Sciences & Arts - ================================================================== + (c) Lucerne University of Applied Sciences and Arts, + supported by the Swiss National Science Foundation (SNSF, #147053) + ================================================================== - $Id: pmapamb.h,v 2.1 2015/02/24 19:39:26 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) */ @@ -23,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