Added s/getClearMask() support to osg::ClearNode, osgUtil::SceneView and the

.osg plugin.
This commit is contained in:
Robert Osfield
2005-05-18 19:55:14 +00:00
parent a83f7a245d
commit 955cc1ec2a
4 changed files with 31 additions and 11 deletions

View File

@@ -21,7 +21,8 @@ using namespace osg;
*/
ClearNode::ClearNode():
_requiresClear(true),
_clearColor(0.0f,0.0f,0.0f,1.0f)
_clearColor(0.0f,0.0f,0.0f,1.0f),
_clearMask(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT)
{
setCullingActive(false);
StateSet* stateset = new StateSet;