On 24 November 2016 at 09:25, Rambabu Repaka <[email protected]> wrote:
> Hi,In osg 3.2.3         
> (*_oceanSurface->getCullCallback())(_oceanSurface.get(), &nv); is working but 
> in osg 3.4.0 error is showing
>
> Error   2       error C2064: term does not evaluate to a function taking 2 
> arguments    D:\osgocean-master1\osgocean-master\src\osgOcean\OceanScene.cpp 
> 884     1       osgOcean
>
> How can i solve this ?
>
> in osg 3.2.3 getcullcallback() is in nodecallback
> in osg 3.4.0 getcullcallback() is in callback

You will need to adjust the problem code to use a dynamic_cast<> to
osg::NodeCallback, or change the problem code to call the
osg::Callback::run(..) method.  The parameter mean and order is
identical between the two types of callback.  The osg::Callback is
more flexible, which is it's reason for use in OSG-3.4 and beyond.

Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to