[osg-users] UpdateCallback

Robert Osfield robert.osfield at gmail.com
Tue Aug 25 03:06:54 PDT 2015

Hi Julie,

You can't pass any different arguments to a NodeCallback::operator()
methods as it's the standard traversal that calls the method.

What you do get is the Node* and NodeVisitoro* pointers to the node that
it's attached to and the visitor that is traversing, you can usually use
these to determine what data is relevant.

You don't say much about what you are trying to do so it's not possible to
make any specific suggestions.  What is the vertex array assigned to?  Can
you get it from the Node*?


On 25 August 2015 at 10:52, Julie Green <laroux92 at mail.ru> wrote:

> Hi,
> Is there a way of passing arguments to operator method of NodeCallback? I
> have a vertex array and need to modify it every frame.
> Thank you!
> Cheers,
> Julie
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64885#64885
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150825/510f0386/attachment-0003.htm>

More information about the osg-users mailing list