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