Hi everyone:
void PickHandler::pick(const osgGA::GUIEventAdapter& ea, osgViewer::Viewer*
viewer)
{
osg::Node* scene = viewer->getSceneData();
if (!scene) return;
if(ea.getEventType() == osgGA::GUIEventAdapter::PUSH )
{
scene->setUpdateCallback(new RotateCallBack());
}
}
My question is when next mouse PUSH , scene->setUpdateCallback(new
RotateCallBack()) call again and new a RotateCallBack object.
But can last time RotateCallBack object is auto-delete?
Thanks in advance!
---------------------------------
雅虎邮箱,您的终生邮箱!
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org