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
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
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
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
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
5 matches
Mail list logo