Mourad Boufarguine writes:

> Hi Josue,
>
> Just a quick note. When using osg::ref_ptr, you should test for
> escena.valid() to know whether the file was loaded or not.
>  if (!escena.valid()){
>                cout<<"No estoy leyendo"<<endl;
>                exit(0);}

I think (!escena) is fine:

bool operator!() const   { return _ptr==0; }

-- 
Alberto

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to