Hi Manu, On 6/5/07, Emmanuel Roche <[EMAIL PROTECTED]> wrote:
I've successfully bind OSG 1.2 to Java before, to integrate an OpenGL display in a Java frame (using JOGL...)... with OSG 1.9.x the good way to do this would be to create a class GraphicsWindowJava I guess ? Have someone already try this ?...
The most flexible way in terms of multi window and multi-threading support is to have a fully implement GraphicsWindowJava, or to inherit the existing Java windows underlying native windowing, a bit like the osgviewerMFC example does. The later will probably be more straightforward than defining a GraphicsWindowMFC, but only if you can get access to the native windowing handles. The easist way to integrate is problem to use the new GraphicsWindowEmbedded class that I added over the weekend, and now used by the GLUT, SDL, Wx and FLTK examples. It should be fine for single threaded examples.
By the way, what is the state of the bindings to java now ?... I think the version of JavaOSG found on the web is quite old (for OSG 1.0 no ?), is a newer version planned soon ?
JavaOSG is pretty well orphaned I'm afraid. The NoodelHeaven project that developed has ceased and the developers headed off into the sunset :-| I'd suggest taking another tack to generating Java wrappers such as by using osgIntrospection in the same way as being done for C# right now. The tool for generating these wrappers should GPL'd in the not too distant future. Robert. _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/