2006/11/14, Don Burns <[EMAIL PROTECTED]>:
On 11/13/06, Robert Osfield <[EMAIL PROTECTED]> wrote: > Producer isn't suited for adding viewer functionality to applications with existing graphics windows set up. Isn't that sweet? I've just checked in examples for integrating Producer with Qt3, GLUT and two examples for differing approaches for FLTK. All use a derived Producer::RenderSurface. It turned out that this was a fairly simple operation to do this. I considered Chris approach, and will probably use that as things are refactored in Producer. However, it was simply a matter of virtualizing realize(), makeCurrent(), swapBuffers() and getWindowRectangle(). This allowed me to derive RenderSurfaces for for FLTK, GLUT, and Qt3. Check the examples in Producer/Examples.
I've been looking into the samples, couldn't be easier it seems :-) Can't wait for tomorrow !
There are a couple of different approaches for dealing with OpenGL rendering in various GUIs, and I'd like to write an article on that and explain the factors that go into to choosing the right architecture for your application given the windowing system of choice. But, for now, I've simply checked in the examples. I'll double check against other OSs tomorrow and add build files for those as well.
That would be a nice article to read ! -- Mathieu _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
