Thanks Ulrich!

: * )~

-Bryan
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Ulrich
Hertlein
Sent: Monday, April 07, 2008 5:01 PM
To: OpenSceneGraph Users
Subject: Re: [osg-users] using plugin to load image file

Quoting Bryan Berg <[EMAIL PROTECTED]>:
> osg::ref_ptr<Image> image = osgDB::readImageFile("lz.rgb");
>...
> I'm getting the following compile errors:
>
> c:\src\MocuTree\MapFlex\MapFlex3D\MapWindow.cpp(1756): error C2262:
'image'
> : cannot be destroyed
> c:\src\MocuTree\MapFlex\MapFlex3D\MapWindow.cpp(1756): error C2065:
'Image'
> : undeclared identifier

Are you 'using namespace osg'?  If not then you'll have to specify the
namespace
for Image as 'osg::ref_ptr<osg::Image> image...'

/ulrich
_______________________________________________
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