From Mike Weiblen, "an aesthetic enhancement for displaying important version information."

This commit is contained in:
Robert Osfield
2008-01-28 20:52:31 +00:00
parent 6e0bbbbc6a
commit e0e98d3426

View File

@@ -25,6 +25,7 @@
#include <osg/PositionAttitudeTransform>
#include <osg/BlendFunc>
#include <osg/ClearNode>
#include <osg/Version>
#include <osgUtil/Tessellator>
#include <osgUtil/CullVisitor>
@@ -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)) {}