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*?


Robert.



On 25 August 2015 at 10:52, Julie Green <[email protected]> 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
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to