1 |
/* RCSid $Id: pmaptype.h,v 2.3 2015/08/18 18:45:55 greg Exp $ */ |
2 |
/* |
3 |
================================================================== |
4 |
Photon map types and corresponding file format strings |
5 |
|
6 |
Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) |
7 |
(c) Fraunhofer Institute for Solar Energy Systems, |
8 |
(c) Lucerne University of Applied Sciences and Arts, |
9 |
supported by the Swiss National Science Foundation (SNSF, #147053) |
10 |
================================================================== |
11 |
|
12 |
*/ |
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 |