Jose Luis Hidalgo wrote:
Hi Hartmut,

And to Marco, how do I call a static method? I just see that
osgDB.readNodeFile/s is not been wrapped which would be a good example
though.

readNodefile is not an abstract method is a function inside osgDB
namespace. And global functions are not wrapped by genwrapper, this is
as far as I know one of the things that will work in the future. Marco
or David can explain the reasons better than me, but I remember that
genwrapper only maps classes, and osgDB by itself is just a namespace.

I wonder if the trick of declare an osgDB class (without namespace)
and its methods as static calling the true methods could work or
not... I will try. I need osgDB.readFile too working in osgLua :)

It was pretty easy to inject osgDB::readNodeFile/s calls using osgLua, no worries about that, I just assume it should be covered in genwrapper/osgWrapper.

Do you reckon line 220, Value.cpp should read:

 method = type.getCompatibleMethod (name,vl, true);

instead of

 method = type.getCompatibleMethod (name,vl, false);


all my problems with osgLua are gone for now ;)


Cheers,
Hartmut



Cheers,
   Jose L.


_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to