stephen-hqxu / superterrainplus

SuperTerrain+: A real-time procedural 3D infinite terrain engine with geographical features and photorealistic rendering.
MIT License
12 stars 1 forks source link

Allow specifying options from command line #51

Closed stephen-hqxu closed 1 year ago

stephen-hqxu commented 2 years ago

The issue

The limitation

Most options and settings are passed via INI in the demo application. Whereas some settings like initial rendering resolution and viewing distance are hardcoded. Changing to them frequently via INI or re-compiling the source code is inconvenient during developmeng testing.

The solution

Allow SuperDemo+ to take certain frequently changed settings from the command line.

The additional

Implement a general purpose command line parser in SuperAlgorithm+Host so it can handle arbitary command line format, allowing me to add more options in the future.

stephen-hqxu commented 2 years ago

May need to refactor STPTextureDefinitionLanguage and rip the lexer out into a separate class, like a general-purpose lexer that allows application to define tokens and identifiers.

stephen-hqxu commented 1 year ago

Done

The command line parser is implemented in the algorithm host package as STPCommandLineParser.