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

@@ -67,6 +67,18 @@ bool ClearNode_readLocalData(Object& obj, Input& fr)
iteratorAdvanced = true;
}
if (fr[0].matchWord("clearMask"))
{
if (fr[1].isUInt())
{
unsigned int value=0;
fr[1].getUInt(value);
es.setClearMask(static_cast<GLbitfield>(value));
iteratorAdvanced = true;
fr+=2;
}
}
return iteratorAdvanced;
}
@@ -86,6 +98,7 @@ bool ClearNode_writeLocalData(const Object& obj, Output& fw)
}
fw.indent() << "clearColor "<<es.getClearColor()<< std::endl;
fw.indent() << "clearMask "<<static_cast<unsigned int>(es.getClearMask())<< std::endl;
return true;
}