Re: [osg-users] Ref_ptr question : argument and return

2008-09-23 Thread Vincent Bourdier
Up, Ok with the rules : http://andesengineering.com/OSG_ProducerArticles/RefPointers/RefPointers.html But there is nothing about ref_ptrs in argument... any idea ? thanks. Regards, Vincent 2008/9/22 Vincent Bourdier [EMAIL PROTECTED] Hi all, I read that all the objects that inherit

Re: [osg-users] Ref_ptr question : argument and return

2008-09-23 Thread Thibault Genessay
Hi Vincent On Mon, Sep 22, 2008 at 5:23 PM, Vincent Bourdier [EMAIL PROTECTED] wrote: Hi all, I read that all the objects that inherit from Referenced need to be in a ref_ptr. They don't _need_ to. You can perfectly use a raw pointer to an osg::Referenced instance, e.g. create a new node:

Re: [osg-users] Ref_ptr question : argument and return

2008-09-23 Thread Vincent Bourdier
Hi Thibault Thanks a lot, this will help me. I understand that the ref_ptr is not needed everywhere, but sometimes it becomes very difficult to undestand if a ref_ptr is needed or if a pointer will be sufficient or safety. Thanks for your help. Regards, Vincent. 2008/9/23 Thibault Genessay

[osg-users] Ref_ptr question : argument and return

2008-09-22 Thread Vincent Bourdier
Hi all, I read that all the objects that inherit from Referenced need to be in a ref_ptr. Ok that sounds good , but : In this case I don't know if I need to put the ref_prt in argument or if only the ptr is needed. bool VisualEffects::setTransparency(string name, float alpha){