diff --git a/examples/osglogo/osglogo.cpp b/examples/osglogo/osglogo.cpp index 5d80c7963..0d36ae282 100644 --- a/examples/osglogo/osglogo.cpp +++ b/examples/osglogo/osglogo.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -478,6 +479,14 @@ int main( int argc, char **argv ) std::string label = "OpenSceneGraph"; std::string subscript = ""; + bool showVersion = false; + while (arguments.read("--version")) { showVersion = true; } + if( showVersion ) + { + label += " "; + label += osgGetVersion(); + } + while (arguments.read("--label", label)) {} while (arguments.read("--subscript", subscript)) {}