Hi Jason, On 1/4/07, Jason Beverage <[EMAIL PROTECTED]> wrote:
One question I had was how, or if, you were going to support attaching a Viewer to a window that was already created, similar to how you could call setWindow on a Producer::RenderSurface before calling realize.
When you set up the Camera's (be in the master or slave) you can assign it a GraphicsWindow (or pbuffer GraphicsContext if you wish). This GraphicsWindow could be a GraphicsWindowQT/FLTK/WxWindows/MFC or even just a GraphicsWindow you mannually create. The osgcamera example provides an example of setting up the camera and associated graphics contexts before calling realize. In theory we could allow GrpahicsWindowX11 the ability to set the window externally rather than have its realize create it, and this would be along the lines you talk of for Producer::RenderSurface. Alternatively one could go the route of having an adapter GraphicsWindow which just reuses a pre-xisting window. I don't have an strong opinions on these later approaches. Facilitiating It won't be me first port of call though, getting GraphicsWindowX11 fully fleshed out - tomorrow I'll do the pbuffer support and this will mostly conclude the first pass at GraphicsWindowX11. Next up to encourage development of GraphicsWindowWin32 and GraphicsWindowCocoa. Then the various other adaptions such as QT, FLTK, MFC, ActiveX etc. etc. This is where I need the community to step up to breach. Other big items CompositeViewer and returning to SimpleViewer. Then will be porting the OSG examples across to using osgViewer rather than osgProducer. Then once this is complete and after we've moved to SVN on the new server I'll move osgProducer out into a separate project. This should be pretty well complete by this end of this month - as long as we get GraphicsWindowWin32 & Cocoa in place that is :-) Robert. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
