ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmaptype.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 -2 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: pmaptype.h,v 2.5 2016/05/17 17:39:47 rschregle Exp $ */
2 rschregle 2.5
3 greg 2.1 /*
4     ==================================================================
5     Photon map types and corresponding file format strings
6    
7     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
8     (c) Fraunhofer Institute for Solar Energy Systems,
9 rschregle 2.2 (c) Lucerne University of Applied Sciences and Arts,
10     supported by the Swiss National Science Foundation (SNSF, #147053)
11 greg 2.1 ==================================================================
12    
13 greg 2.6 $Id: pmaptype.h,v 2.5 2016/05/17 17:39:47 rschregle Exp $
14 greg 2.1 */
15    
16    
17     #ifndef PMAPTYPE_H
18     #define PMAPTYPE_H
19    
20 greg 2.6 #ifdef __cplusplus
21     extern "C" {
22     #endif
23    
24 greg 2.1 /* Photon map types */
25     typedef enum {
26 rschregle 2.5 PMAP_TYPE_NONE = -1, PMAP_TYPE_GLOBAL, PMAP_TYPE_PRECOMP,
27     PMAP_TYPE_CAUSTIC, PMAP_TYPE_VOLUME, PMAP_TYPE_DIRECT,
28     PMAP_TYPE_CONTRIB, NUM_PMAP_TYPES
29 greg 2.1 } PhotonMapType;
30    
31     /* Check for valid photon map type */
32 rschregle 2.5 #define validPmapType(t) ((t) >= 0 && (t) < NUM_PMAP_TYPES)
33 greg 2.1
34     /* Glob string for extracting photon map format from file header */
35     #define PMAP_FORMAT_GLOB "Radiance_*_Photon_Map"
36    
37     /* Format strings for photon map files corresponding to PhotonMapType */
38     extern const char *pmapFormat [];
39    
40     /* Photon map names per type */
41     extern const char *pmapName [];
42 greg 2.6
43     #ifdef __cplusplus
44     }
45     #endif
46    
47 greg 2.1 #endif