Closed GoogleCodeExporter closed 9 years ago
Tried a different approach, but no success yet on getting SWIG to swallow this:
//attempt at a typemap to avoid "normal" pointers getting into target language
scope
//Instead, try to return a new ref_ptr object to the original Referenced object
//see SWIG manual, Pointer Handling:
http://www.swig.org/Doc1.3/Python.html#Python_nn64
%typemap(out) osg::Node * {
printf("Detected Node* using typemap(out)\n");
//Create a new , SWIG wrapped ref_ptr object and return this
//using the function: SWIG_NewPointerObj(void *ptr, swig_type_info *ty, int own)
//use the $descriptor() macro to get the right SWIG type
(SWIGTYPE_p_osg__ref_ptrTosg__Node_t)
$result = SWIG_NewPointerObj($1,$descriptor(NodeRef *),1);
Original comment by gerwinde...@gmail.com
on 18 Jul 2008 at 12:59
I consider this pretty much solved in solved in r162.
Instead of replacing " ~Referenced " in osg/Referenced header file, it is
extended in
SWIG.
Original comment by gerwinde...@gmail.com
on 3 Aug 2008 at 11:28
(status set to fixed, please let us know if you feel this is not the case)
Original comment by gerwinde...@gmail.com
on 20 Jan 2009 at 8:48
Original issue reported on code.google.com by
gerwinde...@gmail.com
on 11 Apr 2008 at 9:02Attachments: