Hi,

I'm porting my osg layer to 2.0 and I have some design questions.

I have a view class (for the moment, it contains a sceneview) that manage
a scene and a camera.

It doesn't handle window creation, gl contexts or window events.

It is used by a higher level application that control all the windowing
stuff. This application can create and destroy windows (one view per window)
on the fly.

And the 2.0 comes ...

I see 2 ways to achieve this.

- my view class is a osgViewer::Viewer + setUpViewerAsEmbeddedInWindow
 to create another window I need to add a slave camera (configured with the
 graphic context returned by setUpViewerAsEmbeddedInWindow)
 But the first thing that setUpViewerAsEmbeddedInWindow do is to reset
 the threading model to single thread

- implement my own GraphicWindow and use them in the slave cameras

any suggestion ?



_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to