- OpenSceneGraph 3.0: Beginner's Guide
- Rui Wang Xuelei Qian
- 61字
- 2021-03-27 00:35:43
Parsing command-line arguments
Command-line arguments to the main function define different parameters for user applications. The main function declaration always looks like this:
The argc
and argv
arguments form a string array containing the application name and other necessary arguments. OSG provides a fast and safe osg::ArgumentParser
to read and make use of them.