Added return value to addViewport.

This commit is contained in:
Robert Osfield
2002-07-27 10:09:39 +00:00
parent 83a276a16a
commit 73b007fccb
2 changed files with 11 additions and 7 deletions

View File

@@ -40,15 +40,15 @@ class OSGGLUT_EXPORT Viewer : public Window, public osgGA::GUIActionAdapter
* only available for backwards compatibility.*/
virtual void init(osg::Node* rootnode);
virtual void addViewport(osgUtil::SceneView* sv,
virtual unsigned int addViewport(osgUtil::SceneView* sv,
float x = 0.0, float y = 0.0,
float width = 1.0, float height = 1.0);
virtual void addViewport(osg::Node*,
virtual unsigned int addViewport(osg::Node*,
float x = 0.0, float y = 0.0,
float width = 1.0, float height = 1.0);
const int getNumViewports() const { return _viewportList.size(); }
const unsigned int getNumViewports() const { return _viewportList.size(); }
osgUtil::SceneView* getViewportSceneView(unsigned int pos)
{ return _viewportList[pos].sceneView.get(); }