A simple header only loader/writer for ies files. Parses the file and writes its content to a struct or vice versa.
#include "tiny_ies.hpp"
tiny_ies<float>::light ies;
// optional: use double precision
// tiny_ies<double>
std::string err;
std::string warn;
if (!tiny_ies<float>::load_ies(filepath, err, warn, ies)) {
// print loading failed
}
if (!err.empty()) // print error
if (!warn.empty()) // print warning
// write ies to file
if (!tiny_ies<float>::write_ies("out.ies", ies, /*optional precision*/ 10)) {
// print writing failed
}
- Load IES
- Save IES
- Filter candela array data (e.g. resize)
- External tile file aka
TILT=<filename>