Show
Ignore:
Timestamp:
01/28/08 21:52:31 (7 years ago)
Author:
robert
Message:

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

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • OpenSceneGraph/trunk/examples/osglogo/osglogo.cpp

    r7648 r7848  
    2626#include <osg/BlendFunc> 
    2727#include <osg/ClearNode> 
     28#include <osg/Version> 
    2829 
    2930#include <osgUtil/Tessellator> 
     
    479480    std::string subscript = ""; 
    480481 
     482    bool showVersion = false; 
     483    while (arguments.read("--version")) { showVersion = true; }  
     484    if( showVersion ) 
     485    { 
     486        label += " "; 
     487        label += osgGetVersion(); 
     488    } 
     489 
    481490    while (arguments.read("--label", label)) {}  
    482491    while (arguments.read("--subscript", subscript)) {}