[osg-users] More than one NodeCallback on the same node

Vincent Bourdier vincent.bourdier at gmail.com
Tue Jul 22 06:17:08 PDT 2008

Hi all,

I'm trying to add more than one nodeCallback on a single node. It would be
very useful for my application.

First way :

In the archive, I founded this :
I didn't saw it in OSG sources, so I suppose it hasn't been implemented ?

Other way to do it :

In the explanation, I found the following code :

if (node->getUpdateCallback())
> node->getUpdateCallback()->addNestedCallback(callback);
> else
> node->setUpdateCallback(callback);

What is the difference between a "nested" callback and a normal nodeCallback
How many nested callback is it possible to add ?

Thanks a lot,

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080722/7816b37a/attachment-0002.htm>

More information about the osg-users mailing list