Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 

Cinder-Config

This is a configuration file loader and saver class designed for use with the open-source C++ library Cinder: http://libcinder.org

Usage example

params::InterfaceGlRef mParams;
config::ConfigRef     mConfig;

params::InterfaceGl::create( getWindow(), "Settings", toPixels( Vec2i( 400, 550 ) ) );
mConfig = config::Config::create(mParams);

mConfig->addParam("Bool type parameter", &boolParam);
mConfig->addParam("Float type parameter", &floatParam);
mConfig->addParam("Double type parameter", &doubleParam);
mConfig->addParam("Int type parameter", &intParam);
mConfig->addParam("Quatf type parameter", &quatfParam);
mConfig->addParam("Enum type parameter", enumNames, &enumValue);
...
mConfig->save( getAppPath() / fs::path("config.xml") );
...
mConfig->load( getAppPath() / fs::path("config.xml") );

See sample in samples directory.

About

Config loader and saver CinderBlock

Resources

Releases

No releases published

Packages

No packages published

Languages