Hello, i've got an osgViewer::GraphicsWindowXm implementation to submit, and while re-arranging a few things i've concluded that it would be appropriate to create a parallel branch alongside osgViewer::GraphicsWindow called osgViewer::GraphicsWidget.
Let me put it this way: osgViewer::GraphicsWindow osgViewer::GraphicsWindow::GraphicsWindowX11 osgViewer::GraphicsWindow::GraphicsWindowCocoa osgViewer::GraphicsWindow::GraphicsWindowWin32 osgViewer::GraphicsWindow::SimpleViewer (i.e. GraphisWindowROOT?) osgViewer::GraphicsWidget osgViewer::GraphicsWidget::GraphicsWidgetXm osgViewer::GraphicsWidget::GraphicsWidgetFOX osgViewer::GraphicsWidget::GraphicsWidgetWx osgViewer::GraphicsWidget::GraphicsWidgetCocoa (if Cocoa is widget lib?) To integrate OSG with Motif you can do what Don Burns does in his osgProducer Motif example, and run the Xm gui as an OpenThreads::Thread() before entering into your osg mainloop. This is what i've currently done as well, so that if i've got a "GraphicsWindowXm" at all, then it's best suited for the examples directory demonstrating how to embed a Motif XmDrawingArea or various other Xm widgets that support a glcontext, for example: XmMainWindow, GLwWidgetClass, XmDrawingArea ...). The glContext setting and buffer-swapping are things you want the widget to do, if working with a widget library. Overriding the init() function of GraphicsWindowX11 hasn't proved to be a good way to get a Motif app with an embedded graphics widget. Also, in the osgViewer::View class, would be a logical place for: std::vector<osgViewer::GraphicsWindow *> windows_vector = osgViewer::Viewer->GetWindows(); std::vector<osgViewer::GraphicsWidget *> widgets_vector = osgViewer::Viewer->GetWidgets(); Anyway, i've written some classes and they're useful, and this is how i think they would best be organized. But i don't know everything, so i'm puttin it out there. Thanks for reading, Charlie Cosse _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
