From Rune Schmidt Jensen, support for osgSim::VisibilityGroup in the .ive loader

and support for node masks.
This commit is contained in:
Robert Osfield
2003-11-27 22:53:40 +00:00
parent f2da687d0f
commit fd2a735be8
9 changed files with 98 additions and 1 deletions

View File

@@ -55,7 +55,6 @@ void Node::write(DataOutputStream* out){
if(getStateSet())
out->writeStateSet(getStateSet());
// Write UpdateCallback if any
osg::AnimationPathCallback* nc = dynamic_cast<osg::AnimationPathCallback*>(getUpdateCallback());
out->writeBool(nc!=0);
@@ -63,6 +62,9 @@ void Node::write(DataOutputStream* out){
{
((ive::AnimationPathCallback*)(nc))->write(out);
}
// Write NodeMask
out->writeUInt(getNodeMask());
}
@@ -100,6 +102,8 @@ void Node::read(DataInputStream* in){
((ive::AnimationPathCallback*)(nc))->read(in);
setUpdateCallback(nc);
}
// Read NodeMask
setNodeMask(in->readUInt());
}
else{
throw Exception("Node::read(): Expected Node identification");