From 9dc4fb1a34c35a26958623d141c90489927618f8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 18 Nov 2004 15:10:24 +0000 Subject: [PATCH] Added write to file and use of clearnode --- examples/osgplanets/osgplanets.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/examples/osgplanets/osgplanets.cpp b/examples/osgplanets/osgplanets.cpp index 6c3b74117..39bf971b4 100644 --- a/examples/osgplanets/osgplanets.cpp +++ b/examples/osgplanets/osgplanets.cpp @@ -17,6 +17,7 @@ #include #include #include +#include #include @@ -607,6 +608,10 @@ int main( int argc, char **argv ) osg::Group* root = new osg::Group; + + osg::ClearNode* clearNode = new osg::ClearNode; + clearNode->setClearColor(osg::Vec4(0.0f,0.0f,0.0f,1.0f)); + root->addChild(clearNode); osg::Group* sunLight = solarSystem.createSunLight(); root->addChild(sunLight); @@ -767,6 +772,7 @@ int main( int argc, char **argv ) { osgDB::writeNodeFile(*root, writeFileName); std::cout<<"Written solar system to \""<