Hi Martin,
Defining << for
osg::Node* node = osgDB::readNodeFile("somefile.osg");
std::cout << *node << std::endl;
Isn't such a daft idea - it would certainly help with debugging - I think I
will take a look at doing that unless it's obviously stupid?
No, I don't think it's stupid, I guess everyone would have slightly
different expectations as to what it should output but a suitable
default version could be integrated into OSG, sure.
I guess you could print out the address and, if name is not empty, the name.
If you really have time on your hands, you could do the same for Group
(which would go through its children and print them out), Drawable,
Geode (which would go through its drawables), MatrixTransform (which
would print out the matrix), etc. :-)
Have fun,
J-S
--
______________________________________________________
Jean-Sebastien Guay [email protected]
http://www.cm-labs.com/
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org