ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/pmaptype.h
Revision: 2.2
Committed: Fri May 8 13:20:23 2015 UTC (9 years, 1 month ago) by rschregle
Content type: text/plain
Branch: MAIN
Changes since 2.1: +3 -2 lines
Log Message:
Double-counting bugfix for glow sources (thanks DGM!), revised copyright

File Contents

# User Rev Content
1 greg 2.1 /*
2     ==================================================================
3     Photon map types and corresponding file format strings
4    
5     Roland Schregle (roland.schregle@{hslu.ch, gmail.com})
6     (c) Fraunhofer Institute for Solar Energy Systems,
7 rschregle 2.2 (c) Lucerne University of Applied Sciences and Arts,
8     supported by the Swiss National Science Foundation (SNSF, #147053)
9 greg 2.1 ==================================================================
10    
11 rschregle 2.2 $Id: pmaptype.h,v 2.1 2015/02/24 19:39:27 greg Exp $
12 greg 2.1 */
13    
14    
15     #ifndef PMAPTYPE_H
16     #define PMAPTYPE_H
17    
18     /* Photon map types */
19     typedef enum {
20     PMAP_TYPE_NONE = -1, PMAP_TYPE_GLOBAL, PMAP_TYPE_PRECOMP,
21     PMAP_TYPE_CAUSTIC, PMAP_TYPE_VOLUME, PMAP_TYPE_DIRECT,
22     PMAP_TYPE_CONTRIB, NUM_PMAP_TYPES
23     } PhotonMapType;
24    
25     /* Check for valid photon map type */
26     #define validPmapType(t) ((t) >= 0 && (t) < NUM_PMAP_TYPES)
27    
28     /* Glob string for extracting photon map format from file header */
29     #define PMAP_FORMAT_GLOB "Radiance_*_Photon_Map"
30    
31     /* Format strings for photon map files corresponding to PhotonMapType */
32     extern const char *pmapFormat [];
33    
34     /* Photon map names per type */
35     extern const char *pmapName [];
36     #endif