ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapcontrib.h
(Generate patch)

Comparing ray/src/rt/pmapcontrib.h (file contents):
Revision 2.1 by greg, Tue Feb 24 19:39:26 2015 UTC vs.
Revision 2.6 by greg, Tue Sep 17 16:36:05 2024 UTC

# Line 1 | Line 1
1 + /* RCSid $Id$ */
2 +
3   /*
4     ==================================================================
5     Photon map support for light source contributions
6  
7     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
8 <   (c) Fraunhofer Institute for Solar Energy Systems,
9 <       Lucerne University of Applied Sciences & Arts  
8 >   (c) Lucerne University of Applied Sciences and Arts,
9 >   supported by the Swiss National Science Foundation (SNSF, #147053)
10     ==================================================================
11    
12     $Id$
13   */
14  
15 < #ifndef PMAP_CONTRIB_H
16 <   #define PMAP_CONTRIB_H
15 > #ifndef PMAPCONTRIB_H
16 >   #define PMAPCONTRIB_H
17  
18     #include "pmapdata.h"  
19 <  
19 >
20 > #ifdef __cplusplus
21 > extern "C" {
22 > #endif
23 >
24     void initPmapContrib (LUTAB *srcContrib, unsigned numSrcContrib);
25     /* Set up photon map contributions (interface to rcmain.c) */
26  
27 <   void distribPhotonContrib (PhotonMap *pmap);
27 >   void distribPhotonContrib (PhotonMap *pmap, unsigned numProc);
28     /* Emit photons from light sources with tagged contributions, and
29      * build photon map */
30  
31     void photonContrib (PhotonMap *pmap, RAY *ray, COLOR irrad);
32     /* Accumulate light source contributions in pmap -> srcMods from
33      * photons, and return cumulative irradiance from density esimate */
34 +
35 + #ifdef __cplusplus
36 + }
37 + #endif
38  
39   #endif

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines