Added support for osg::Node::get/setNodeMask() into .osg format.

This commit is contained in:
Robert Osfield
2003-04-09 10:30:24 +00:00
parent ca4b558994
commit 692283100c

View File

@@ -34,6 +34,14 @@ bool Node_readLocalData(Object& obj, Input& fr)
iteratorAdvanced = true;
}
unsigned int mask = node.getNodeMask();
if (fr[0].matchWord("nodeMask") && fr[1].getUInt(mask))
{
node.setNodeMask(mask);
fr+=2;
iteratorAdvanced = true;
}
if (fr[0].matchWord("cullingActive"))
{
if (fr[1].matchWord("FALSE"))
@@ -136,6 +144,8 @@ bool Node_writeLocalData(const Object& obj, Output& fw)
if (!node.getName().empty()) fw.indent() << "name "<<fw.wrapString(node.getName())<< std::endl;
fw.indent() << "nodeMask 0x" << hex << node.getNodeMask() << dec << std::endl;
fw.indent() << "cullingActive ";
if (node.getCullingActive()) fw << "TRUE"<< std::endl;
else fw << "FALSE"<< std::endl;