[osg-users] What is the correct method for removing update callbacks?

Robert Osfield robert.osfield at gmail.com
Fri Sep 28 06:17:07 PDT 2007

On 9/28/07, beelzebob999-osg at yahoo.com <beelzebob999-osg at yahoo.com> wrote:
> So, how do you get rid of update callbacks that are no
> longer needed?  Do you have to do a separate traversal
> just to check for update callbacks that are "done"?

It depends upon where you determine you need to set the callback to 0.
  You can do it in your main loop if you wish.  Subclass from
Viewer::updateTraversals() if you wish.  If you wish you can set the
callback to null before you traversal the subgraph.

More information about the osg-users mailing list