Added Viewer::setUpViewerAsEmbeddedInWindow convinience method

This commit is contained in:
Robert Osfield
2007-06-03 09:34:28 +00:00
parent 089b9dbd88
commit b5791629ea
4 changed files with 18 additions and 10 deletions

View File

@@ -47,8 +47,15 @@ class OSGVIEWER_EXPORT Viewer : public osgViewer::View
const osg::FrameStamp* getFrameStamp() const { return _frameStamp.get(); }
/** Set the sene graph data that viewer with view.*/
virtual void setSceneData(osg::Node* node);
/** Convinience method for setting up the viewer so it can be used embedded in an external managed window.
* Returns the GraphicsWindowEmbedded that can be used by applications to pass in events to the viewer. */
virtual GraphicsWindowEmbedded* setUpViewerAsEmbeddedInWindow(int x, int y, int width, int height);
enum ThreadingModel
{
SingleThreaded,