--- ray/src/rt/pmapcontrib.h 2015/09/01 16:27:52 2.4 +++ ray/src/rt/pmapcontrib.h 2024/09/17 16:36:05 2.6 @@ -1,4 +1,5 @@ -/* RCSid $Id: pmapcontrib.h,v 2.4 2015/09/01 16:27:52 greg Exp $ */ +/* RCSid $Id: pmapcontrib.h,v 2.6 2024/09/17 16:36:05 greg Exp $ */ + /* ================================================================== Photon map support for light source contributions @@ -8,22 +9,31 @@ supported by the Swiss National Science Foundation (SNSF, #147053) ================================================================== + $Id: pmapcontrib.h,v 2.6 2024/09/17 16:36:05 greg Exp $ */ -#ifndef PMAP_CONTRIB_H - #define PMAP_CONTRIB_H +#ifndef PMAPCONTRIB_H + #define PMAPCONTRIB_H #include "pmapdata.h" - + +#ifdef __cplusplus +extern "C" { +#endif + void initPmapContrib (LUTAB *srcContrib, unsigned numSrcContrib); /* Set up photon map contributions (interface to rcmain.c) */ - void distribPhotonContrib (PhotonMap *pmap); + void distribPhotonContrib (PhotonMap *pmap, unsigned numProc); /* Emit photons from light sources with tagged contributions, and * build photon map */ void photonContrib (PhotonMap *pmap, RAY *ray, COLOR irrad); /* Accumulate light source contributions in pmap -> srcMods from * photons, and return cumulative irradiance from density esimate */ + +#ifdef __cplusplus +} +#endif #endif