| 1 |
greg |
2.1 |
/*
|
| 2 |
|
|
==================================================================
|
| 3 |
|
|
Photon map file I/O
|
| 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: pmapio.h,v 1.6 2015/01/09 10:29:44 taschreg Exp $
|
| 11 |
|
|
*/
|
| 12 |
|
|
|
| 13 |
|
|
|
| 14 |
|
|
#ifndef PMAPIO_H
|
| 15 |
|
|
#define PMAPIO_H
|
| 16 |
|
|
|
| 17 |
|
|
#include "pmapdata.h"
|
| 18 |
|
|
|
| 19 |
|
|
#define PMAP_FILEVER 160u /* File format version */
|
| 20 |
|
|
|
| 21 |
|
|
void savePhotonMap (const PhotonMap *pmap, const char *fname,
|
| 22 |
|
|
PhotonMapType type, int argc, char **argv);
|
| 23 |
|
|
/* Save portable photon map of specified type to filename,
|
| 24 |
|
|
along with the corresponding command line. */
|
| 25 |
|
|
|
| 26 |
|
|
PhotonMapType loadPhotonMap (PhotonMap *pmap, const char* fname);
|
| 27 |
|
|
/* Load portable photon map from specified filename, and return photon
|
| 28 |
|
|
* map type as identified from file header. */
|
| 29 |
|
|
|
| 30 |
|
|
#endif
|