Hi all,

I'm making some function to modify graph after some operation, and so I need
to call some simple actions in functions.

The problem is about ref_ptr :

I need to do this :

osg::ref_ptr<osg::Group> mygroup;
[..]
mygroup = NULL;
[...]


To do that in a function, I use someting like :
addonstack(mygroup, NULL); //prototype is :
addonstack(osg::ref_ptr<osg::Group> caller, osg::Node* arg1);

which did this :
osg::ref_ptr<osg::Node> nd = dynamic_cast<osg::Node*>(caller.get());
        if(nd.get()){
                nd =arg1;

But, the problem is that it doesn't change anything... I need, without
making some modifications in the addonstack prototype, a way to put the
ref_ptr to NULL .

Any idea ?
Thanks.

Regards,
    Vincent.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to