ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmapcontrib.h
Revision: 2.6
Committed: Tue Sep 17 16:36:05 2024 UTC (7 months, 2 weeks ago) by greg
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 2.5: +11 -3 lines
Log Message:
chore: Added extern "C" to headers to avoid C++ name mangling

File Contents

# User Rev Content
1 greg 2.6 /* RCSid $Id: pmapcontrib.h,v 2.5 2016/05/17 17:39:47 rschregle Exp $ */
2 rschregle 2.5
3 greg 2.1 /*
4     ==================================================================
5     Photon map support for light source contributions
6    
7     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
8 rschregle 2.2 (c) Lucerne University of Applied Sciences and Arts,
9     supported by the Swiss National Science Foundation (SNSF, #147053)
10 greg 2.1 ==================================================================
11    
12 greg 2.6 $Id: pmapcontrib.h,v 2.5 2016/05/17 17:39:47 rschregle Exp $
13 greg 2.1 */
14    
15 rschregle 2.5 #ifndef PMAPCONTRIB_H
16     #define PMAPCONTRIB_H
17 greg 2.1
18     #include "pmapdata.h"
19 greg 2.6
20     #ifdef __cplusplus
21     extern "C" {
22     #endif
23    
24 greg 2.1 void initPmapContrib (LUTAB *srcContrib, unsigned numSrcContrib);
25     /* Set up photon map contributions (interface to rcmain.c) */
26    
27 rschregle 2.5 void distribPhotonContrib (PhotonMap *pmap, unsigned numProc);
28 greg 2.1 /* 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 greg 2.6 #ifdef __cplusplus
36     }
37     #endif
38    
39 greg 2.1 #endif