[osg-users] [osgPlugins] Exporting OpenFlight from OSG and DDS textures
Robert Osfield
robert.osfield at gmail.com
Thu Nov 24 02:04:57 PST 2016
On 24 November 2016 at 09:25, Rambabu Repaka <ramboram488 at gmail.com> 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.
More information about the osg-users
mailing list