Skip to content

Header only C++11 IES loader/writer

License

Notifications You must be signed in to change notification settings

fknfilewalker/tinyies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Header only C++11 IES loader.

A simple header only loader/writer for ies files. Parses the file and writes its content to a struct or vice versa.

Usage

#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
}

example

Features

  • Load IES
  • Save IES
  • Filter candela array data (e.g. resize)
  • External tile file aka TILT=<filename>

License (MIT)

Releases

No releases published

Packages

No packages published

Languages