Hi Jose,

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.

As I wrote in my previous message, There is no particular reason for that. Given the amount of class methods over free functions in OSG I decided to restrict development to class methods only, and add support for free functions as special cases in client code without using osgIntrospection (as I did in osgTcl). This was enough for me, but it may not satisfy everyone's requirements. While osgIntrospection entered the OSG distribution almost two years ago, only recently it's beginning to gain popularity. This means that bugs and missing features are going to be discovered as people use it.

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 :)

Declaring a wrapper for a class will make osgIntrospection ask for the class' typeid, and you can't get the typeid of a namespace as it's not a type.

Cheers,
Marco

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

Reply via email to