/* RCSid $Id: pmapio.h,v 2.7 2018/12/07 20:07:41 rschregle Exp $ */ /* ====================================================================== Photon map portable file I/O Roland Schregle (roland.schregle@{hslu.ch, gmail.com}) (c) Fraunhofer Institute for Solar Energy Systems, supported by the German Research Foundation (DFG LU-204/10-2, "Fassadenintegrierte Regelsysteme FARESYS") (c) Lucerne University of Applied Sciences and Arts, supported by the Swiss National Science Foundation (SNSF #147053, "Daylight Redirecting Components", SNSF #179067, "Light Fields for Spatio-Temporal Glare Assessment") ====================================================================== $Id: pmapio.h,v 2.7 2018/12/07 20:07:41 rschregle Exp $ */ #ifndef PMAPIO_H #define PMAPIO_H #include "pmapdata.h" /* File format version with feature suffix */ #define PMAP_FILEVER_MAJ "4.0" #ifdef PMAP_OOC #define PMAP_FILEVER_TYP "o" #else #define PMAP_FILEVER_TYP "k" #endif #ifdef PMAP_FLOAT_FLUX #define PMAP_FILEVER_FLX "f" #else #define PMAP_FILEVER_FLX "" #endif #define PMAP_FILEVER (PMAP_FILEVER_MAJ PMAP_FILEVER_TYP PMAP_FILEVER_FLX) /* Maximum portable size of a long int in photon map file */ #define PMAP_LONGSIZE 8 void savePhotonMap ( const PhotonMap *pmap, const char *fname, int argc, char **argv ); /* Save portable photon map of specified type to filename, along with the corresponding command line. */ PhotonMapType loadPhotonMap (PhotonMap *pmap, const char* fname); /* Load portable photon map from specified filename, and return photon * map type as identified from file header. */ #endif