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 |
Lucerne University of Applied Sciences & Arts |
8 |
================================================================== |
9 |
|
10 |
$Id: pmaptype.h,v 1.4 2014/12/01 16:36:19 taschreg Exp $ |
11 |
*/ |
12 |
|
13 |
|
14 |
#ifndef PMAPTYPE_H |
15 |
#define PMAPTYPE_H |
16 |
|
17 |
/* Photon map types */ |
18 |
typedef enum { |
19 |
PMAP_TYPE_NONE = -1, PMAP_TYPE_GLOBAL, PMAP_TYPE_PRECOMP, |
20 |
PMAP_TYPE_CAUSTIC, PMAP_TYPE_VOLUME, PMAP_TYPE_DIRECT, |
21 |
PMAP_TYPE_CONTRIB, NUM_PMAP_TYPES |
22 |
} PhotonMapType; |
23 |
|
24 |
/* Check for valid photon map type */ |
25 |
#define validPmapType(t) ((t) >= 0 && (t) < NUM_PMAP_TYPES) |
26 |
|
27 |
/* Glob string for extracting photon map format from file header */ |
28 |
#define PMAP_FORMAT_GLOB "Radiance_*_Photon_Map" |
29 |
|
30 |
/* Format strings for photon map files corresponding to PhotonMapType */ |
31 |
extern const char *pmapFormat []; |
32 |
|
33 |
/* Photon map names per type */ |
34 |
extern const char *pmapName []; |
35 |
#endif |