[osg-users] WindowManager lifecycle

2011-02-11 Thread Gianni Ambrosio
Hi All, I'm trying to understand osgWidget library and I have a basic question. In the related examples I see an osgWidget::WindowManager instance is created on the heap but never deleted explicitly. Is the associated viewer responsible of the WindowManager deletion or should I delete it

Re: [osg-users] WindowManager lifecycle

2011-02-11 Thread Jean-Sébastien Guay
Hello Gianni, In the related examples I see an osgWidget::WindowManager instance is created on the heap but never deleted explicitly. Is the associated viewer responsible of the WindowManager deletion or should I delete it somewhere? Like most objects in OSG, the WindowManager is

Re: [osg-users] WindowManager lifecycle

2011-02-11 Thread Gianni Ambrosio
Skylark wrote: camera-addChild(wm); // wm's reference count becomes 1 OK, you are right. Thanks Gianni -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=36565#36565 ___ osg-users mailing list

Re: [osg-users] WindowManager lifecycle

2011-02-11 Thread Gianni Ambrosio
Just one more consideration. In other examples (i.e. osgwidgetlabel) the window manager is not added as child of the camera but createParentOrthoCamera() is used insted. Looking at that code the Window Manager is internally added to the returned camera. Gianni -- Read this

Re: [osg-users] WindowManager lifecycle

2011-02-11 Thread Jeremy Moles
On Fri, 2011-02-11 at 18:36 +0100, Gianni Ambrosio wrote: Just one more consideration. In other examples (i.e. osgwidgetlabel) the window manager is not added as child of the camera but createParentOrthoCamera() is used insted. Looking at that code the Window Manager is internally added to