Show
Ignore:
Timestamp:
11/18/04 16:10:24 (9 years ago)
Author:
robert
Message:

Added write to file and use of clearnode

Files:
1 modified

Legend:

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

    r3666 r3667  
    1818#include <osg/TexEnv> 
    1919#include <osg/TexEnvCombine> 
     20#include <osg/ClearNode> 
    2021 
    2122 
     
    608609     
    609610    osg::Group* root = new osg::Group; 
     611     
     612    osg::ClearNode* clearNode = new osg::ClearNode; 
     613    clearNode->setClearColor(osg::Vec4(0.0f,0.0f,0.0f,1.0f)); 
     614    root->addChild(clearNode); 
    610615 
    611616    osg::Group* sunLight = solarSystem.createSunLight(); 
     
    768773        osgDB::writeNodeFile(*root, writeFileName); 
    769774        std::cout<<"Written solar system to \""<<writeFileName<<"\""<<std::endl; 
     775        return 0; 
    770776    } 
    771777 
     
    835841    viewer.realize(); 
    836842     
    837     viewer.setClearColor(osg::Vec4(0.0f,0.0f,0.0f,1.0f)); 
    838  
    839843    while( !viewer.done() ) 
    840844    {