OpenSceneGraph/src/osg/NodeCallback.cpp

12 lines
258 B
C++
Raw Normal View History

2001-11-12 18:00:08 +08:00
#include <osg/Node>
#include <osg/NodeCallback>
#include <osg/NodeVisitor>
using namespace osg;
void NodeCallback::traverse(Node* node,NodeVisitor* nv)
{
if (_nestedCallback.valid()) (*_nestedCallback)(node,nv);
else nv->traverse(*node);
}