Hi,
I have a function which I want to return a group, with two alternatives:
Code:
osg::ref_ptr< osg::Group > returnGroup()
{
osg::ref_ptr < osg::Group > group = new osg::Group;
...
return group;
}
Code:
osg::Group * returnGroup()
{
osg::Group * group = new osg::Group;
...
return group;
}
Which usage is better if garbage collection is desired?
Thank you!
Cheers,
Juan
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=45134#45134
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org