From 1de65ddedcc9345f0b673c0c7cd4e89fc3eea802 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 3 Jan 2007 17:26:24 +0000 Subject: [PATCH] Added setting of default backgroud colour of View's master colour to be consistent with the previous default colour used by SceneView --- examples/osgcamera/osgcamera.cpp | 3 +-- src/osg/View.cpp | 5 +---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/examples/osgcamera/osgcamera.cpp b/examples/osgcamera/osgcamera.cpp index 208f95b38..d67f1938c 100644 --- a/examples/osgcamera/osgcamera.cpp +++ b/examples/osgcamera/osgcamera.cpp @@ -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; diff --git a/src/osg/View.cpp b/src/osg/View.cpp index c9fc85ccb..f41634f4d 100644 --- a/src/osg/View.cpp +++ b/src/osg/View.cpp @@ -20,11 +20,8 @@ View::View() // osg::notify(osg::NOTICE)<<"Constructing osg::View"<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()