cinder / Cinder

Cinder is a community-developed, free and open source library for professional-quality creative coding in C++.
http://libcinder.org
Other
5.28k stars 939 forks source link

Platform cmd line #2287

Closed andrewfb closed 2 years ago

andrewfb commented 2 years ago

This PR changes how command line arguments are captured in Cinder. The motivating case is simplifying the passing of arguments which need to be accessed before the app::App has been instantiated, such arguments which need to influence settings on the default Renderer.

The changes move command line argument accessors to be exposed via Platform::get()->getCommandLineArgs() rather than from the app::Settings.

It also updates the test\cmdLineArgs and Windows screensaver test. Note that it's a breaking change, although in an infrequently used feature.