Skip to content
Config loader and saver CinderBlock
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
include
samples/configBasicApp
src
templates/Config
.gitignore
README.md
cinderblock.png
cinderblock.xml

README.md

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.

You can’t perform that action at this time.