Added s/getClearColor and deprecated s/getBackgroundColor(). Re-implemented

setClearColor so that it passes on its value to Camera::setClearColor(), and
changed OsgSceneHandler to use the Camera::getClearColor() on each new frame
to ensure that it reflects the settings of the camera correctly.
This commit is contained in:
Robert Osfield
2004-08-05 10:01:32 +00:00
parent ddb7423e46
commit 53dc96bb50
3 changed files with 27 additions and 9 deletions

View File

@@ -54,6 +54,10 @@ void OsgSceneHandler::cullImplementation(Producer::Camera &cam)
_sceneView->setViewport( x, y, w, h );
osg::Vec4 clear_color;
cam.getClearColor(clear_color[0],clear_color[1],clear_color[2],clear_color[3]);
_sceneView->setClearColor(clear_color);
_sceneView->cull();
}