[osg-users] Error with osgDB::readRefNodeFiles
Inna Reddy
osgforum at tevs.eu
Tue Oct 4 04:15:10 PDT 2016
Hi all ,
In my code , I have been using the osgDB::readRefNodefiles. When I do compile the code it throwing me an error saying :
Error 2 error C2039: 'readRefNodeFiles' : is not a member of 'osgDB'
Error 3 error C3861: 'readRefNodeFiles': identifier not found
IntelliSense: namespace "osgDB" has no member "readRefNodeFiles"
I have included the libs also.
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
#include <osgDB/Registry>
Code:
and the code part is
osg::ref_ptr<osg::Node> loadedModel = osgDB::readRefNodeFiles(arguments);
if (loadedModel.valid())
{
mainGroup->addChild(loadedModel);
center = loadedModel->getBound().center();
diameter = loadedModel->getBound().radius() * 2.0f;
}
Thank you!
Cheers,
Inna
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=68840#68840
More information about the osg-users
mailing list