Added setting of default backgroud colour of View's master colour to be

consistent with the previous default colour used by SceneView
This commit is contained in:
Robert Osfield 2007-01-03 17:26:24 +00:00
parent eb3ef906e7
commit 1de65ddedc
2 changed files with 2 additions and 6 deletions

View File

@ -170,7 +170,6 @@ int main( int argc, char **argv )
if (apm.valid()) viewer.setCameraManipulator(apm.get());
else viewer.setCameraManipulator( new osgGA::TrackballManipulator() );
viewer.getCamera()->setClearColor(osg::Vec4f(0.6f,0.6f,0.8f,1.0f));
#if 0
@ -187,7 +186,7 @@ int main( int argc, char **argv )
viewer.realize();
bool limitNumberOfFrames = true;
bool limitNumberOfFrames = false;
unsigned int numFrames = 0;
unsigned int maxFrames = 10;

View File

@ -20,11 +20,8 @@ View::View()
// osg::notify(osg::NOTICE)<<"Constructing osg::View"<<std::endl;
setCamera(new osg::Camera);
#if 0
_camera->setProjectionMatrixAsPerspective(50.0f,1.4f,1.0f,10000.0f);
#else
_camera->setProjectionMatrixAsFrustum(-0.325, 0.325, -0.26, 0.26, 1.0f,10000.0f);
#endif
_camera->setClearColor(osg::Vec4f(0.2f, 0.2f, 0.4f, 1.0f));
}
View::~View()