Hi, Roman

osg arrays, as most osg objects can be stored with osg::ref_ptr. You cant 
delete Vec3Array yourself, because it have protected destructor. If you store 
it with ref_ptr it will be destroyed when no more references left.

Cheers,
Sergey.

31.03.2011, 09:33, "Roman Grigoriev" <[email protected]>:
> Hi,
> Have some simple question
> I need to store my object position in a memory
> I create osg::Vec3Array like this
>         osg::Vec3Array* varray = new osg::Vec3Array();
> and store my positions there
> when I need to save  another track I use empty() method and store another 
> track
> My question is what is the best method to release this buffer when I finish 
> my app or osg automatically clean memory?
> ...
>
> Thank you!
>
> Cheers,
> Roman
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=38095#38095
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to