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 |
(c) Lucerne University of Applied Sciences and Arts, |
8 |
supported by the Swiss National Science Foundation (SNSF, #147053) |
9 |
================================================================== |
10 |
|
11 |
$Id: pmaptype.h,v 2.1 2015/02/24 19:39:27 greg Exp $ |
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 |